You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
misc/greasemonkey/virtualblinders.user.js

18 lines
615 B

// ==UserScript==
// @name VirtualBlinders
// @namespace Utopiah
// @description Stay focus, damnit!
// @include *youtube.com*
// ==/UserScript==
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?";
}
}
});