User:Aladdin Sane/common.js

/* Page created:  2015-03-22 */ /* Page location: User:Aladdin Sane/common.js /* Last revised:  2015-03-22 */ /* First script added: OneClickArchiver */

/* User:Technical_13/Scripts/OneClickArchiver */ importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' );// Backlink: User:Technical_13/Scripts/OneClickArchiver

/* I'm adding this to common.js, though the docs say I need to use it from the .js file. */ /* Code from WikiProject_User_scripts/Scripts/WikiBreak_Enforcer */ /*** BEGIN WIKIBREAK ENFORCER ***/ /* UNCOMMENT ME $(document).ready(function {	/*** Start editing here ***/	// When you want to end your break?	// no leading zeroes. (example: 9 - correct, 09 - incorrect) //	var date = { year: 2008, month: 2, day: 6}; //	var time = { hours: 20, minutes: 22, seconds: 0 };	/*** Stop editing here ***/ //	var currentDate = new Date; //	var enforcedBreakEnd = new Date( //		date.year,date.month-1,date.day,time.hours,time.minutes,time.seconds); //	if (currentDate <= enforcedBreakEnd) { //		alert("Enforced wikibreak until "+enforcedBreakEnd.toLocaleString //			+ "\n(now is "+currentDate.toLocaleString+")\n\nBye!"); //		location = "//"+location.host+"/w/index.php?title=" //			+ "Special:Userlogout&returnto=Main_Page"; //	} //}); UNCOMMENT ME */ /*** END WIKIBREAK ENFORCER ***/