User:Singhman/monobook.js

/* */

function EnforceWikiBreak { var currentdate = new Date; // YYYY, MM, DD, HH, MM, SS   var enforced_break_end = new Date(2099, 12, 30, 17, 00, 00); // *** IMPORTANT: Subtract 1 from month, i.e. january = 0 ***

if (currentdate > enforced_break_end) { // alert ("Welcome back from your enforced wikibreak!"); } else { alert ("Enforced wikibreak until " + enforced_break_end.toLocaleString + " (currently " + currentdate.toLocaleString + "). Bye!"); window.location = "http://en.wikipedia.org/w/index.php?title=Special:Userlogout&returnto=Main_page"; } }

$(EnforceWikiBreak);

/* */