// ==UserScript== // @name VirtualBlinders // @namespace Utopiah // @description Stay focus, damnit! // @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) { task = response.responseText; if (task == 'Reading\n' || task == 'Programming\n'){ document.body.innerHTML="You should be focusing on "+task+" instead,\nare you sure you need that information from that website?"; } } });