updated todos to add flexibility
This commit is contained in:
@@ -19,7 +19,12 @@
|
||||
|
||||
/*
|
||||
* Script homepage : http://userscripts.org/forums/1/topics/2150
|
||||
* To do : check the homepage http://fabien.benetou.fr/Tools/Greasemonkey#MouselessAutoscroll
|
||||
* : http://fabien.benetou.fr/Tools/Greasemonkey#MouselessAutoscroll
|
||||
|
||||
TODO
|
||||
if GM_getValue(BASE_TIME) is set and is correct use it
|
||||
allows to update the script while maintaining that value
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -5,13 +5,24 @@
|
||||
// @include *youtube.com*
|
||||
// ==/UserScript==
|
||||
|
||||
/* TODO
|
||||
|
||||
# improve the list of websites to include
|
||||
## consider include * then refine pattern per task
|
||||
# make timers (default to 0 sec, value defined via the script or a GM_Value) to be more flexible
|
||||
## reset timer either manually or per day (i.e.) reset if last set date <5AM
|
||||
|
||||
See setTimeout() to make a counter.
|
||||
|
||||
*/
|
||||
|
||||
GM_xmlhttpRequest({
|
||||
method: "GET",
|
||||
url: "http://fabien.benetou.fr/pub/currenttask",
|
||||
onload: function(response) {
|
||||
res = response.responseText;
|
||||
if (res == 'Reading\n' || res == 'Programming\n'){
|
||||
document.body.innerHTML="You should be focusing on <a href=\"http://fabien.benetou.fr/CognitiveEnvironments/" + res + "\">"+res+"</a> instead,\nare you sure you need that information from that website?";
|
||||
task = response.responseText;
|
||||
if (task == 'Reading\n' || task == 'Programming\n'){
|
||||
document.body.innerHTML="You should be focusing on <a href=\"http://fabien.benetou.fr/CognitiveEnvironments/" + task + "\">"+task+"</a> instead,\nare you sure you need that information from that website?";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user