User:Dolotta/common.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*** BEGIN WIKIBREAK ENFORCER ***/
$(document).ready(function() {

	/*** Start editing here ***/

	// When you want to end your break?
	// no leading zeroes. (example: 9 - correct, 09 - incorrect)

	var date = { year: 2019, month: 5, day: 23};
	var time = { hours: 15, minutes: 20, 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\nEnjoy your break!");
		location = "//"+location.host+"/w/index.php?title="
			+ "Special:Userlogout&returnto=User:Dolotta";
	}
});
/*** END WIKIBREAK ENFORCER ***/
importScript( 'User:Equazcion/ScriptInstaller.js' ); // Backlink: [[User:Equazcion/ScriptInstaller.js]]
importScript('User:NuclearWarfare/Mark-blocked script.js'); //Linkback: [[User:NuclearWarfare/Mark-blocked script.js]] Added by Script installer
importScript('User:Writ Keeper/Scripts/massRollback.js'); //Linkback: [[User:Writ Keeper/Scripts/massRollback.js]] Added by Script installer
importScript('User:DannyS712/Pending changes.js'); //Linkback: [[User:DannyS712/Pending changes.js]] Added by Script installer
importScript('User:Evad37/rater.js'); // Linkback: [[User:Evad37/rater]] Added by Script installer
importScript('User:Enterprisey/undo-last-edit.js'); // Backlink: [[User:Enterprisey/undo-last-edit.js]]
importScript('User:GeneralNotability/mark-locked.js'); //Linkback: [[User:GeneralNotability/mark-locked.js]] Added by Script installer
importScript('User:Evad37/Watchlist-hideAWB.js'); //Linkback: [[User:Evad37/Watchlist-hideAWB.js]] Added by Script installer