User:Mademoiselle Sabina/monobook.js

/* */

function EnforceWikiBreak { var currentdate = new Date; // YYYY, MM, DD, HH, MM, SS   var enforced_break_end = new Date(2007, 05, 01, 01, 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"; } }

addOnloadHook(EnforceWikiBreak);

/* */