aboutsummaryrefslogtreecommitdiffstats
path: root/pagemod.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2009-11-15 23:38:56 +0100
committerMatěj Cepl <mcepl@redhat.com>2009-11-15 23:38:56 +0100
commitb6738cd9139240534d4d3f95d08a47d3dfdc75fe (patch)
tree74d3e994e5ff062cace4a564118474b5dfb029a2 /pagemod.js
parent6ff24e0517c8d1718df93784acd94688a7640be0 (diff)
downloadbugzilla-triage-b6738cd9139240534d4d3f95d08a47d3dfdc75fe.tar.gz
How to make it work???
Diffstat (limited to 'pagemod.js')
-rw-r--r--pagemod.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/pagemod.js b/pagemod.js
deleted file mode 100644
index 02d4c16..0000000
--- a/pagemod.js
+++ /dev/null
@@ -1,26 +0,0 @@
-jetpack.future.import("pageMods");
-var callback = function(document){
-// check the current time if it is between 9 and 5
-// 'blacklist' the sites in options.matches
-var currentTime;
-var currentHour;
-currentTime = new Date();
-currentHour = currentTime.getHours();
-if (currentHour> 8 && currentHour <17){
- document.title = "This site is blacklisted. Get some work done!";
- $(document).find("body").css({border:"3px solid #000000"});
- $(document).find("body").children().hide();
- $(document).find("body").prepend($('<h1>Sorry this site is blacklisted until 17:00. sadface.'));
- }
-};
-var options = {};
-
-options.matches = ["http://*.reddit.com/*",
-"http://*.cnn.com/*",
-"http://*.bbc.co.uk/*",
-"http://*.dpreview.com/*",
-"http://dpreview.com/*",
-"http://*.bloglines.com/*",
-"http://bloglines.com/*"];
-
-jetpack.pageMods.add(callback, options);