User:Pcu123456789/monobook.js

function EnforceWikiBreak { var currentdate = new Date; // YYYY, MM - 1, DD, HH, MM, SS   var enforced_break_end = new Date(2006, 05 - 1, 31, 01, 00, 00); // *** IMPORTANT: Subtract 1 from month, i.e. January = 1 - 1 ***

if (currentdate > enforced_break_end) { // alert ("Welcome back from your enforced wikibreak!"); } else { if (window.confirm("Enforced wikibreak until " + enforced_break_end.toLocaleString + " (currently " + currentdate.toLocaleString + "). Log off (else override with 100 dialogs)?")) { window.location = "http://en.wikipedia.org/w/index.php?title=Special:Userlogout&returnto=Main_page"; } else { for (var i = 1; i < 101; i++) { alert ("Msgbox " + i.toLocaleString + " of 100.") }    } }

addOnloadHook(EnforceWikiBreak);

/* Moved to User:Pcu123456789/broken/monobook.js because it broke !!!