Jump to content

User:Super Cyclonic Storm Corona/common.js

From 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.
importScript('User:BrandonXLF/Restorer.js'); // [[User:BrandonXLF/Restorer.js]]
mw.loader.load( '/enwiki/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]
importScript( 'User:Qwertyytrewqqwerty/DisamAssist.js' ); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript( 'User:Danski454/stubsearch.js' ); // Backlink: [[User:Danski454/stubsearch.js]]
importScript('User:SD0001/StubSorter.js'); // [[User:SD0001/StubSorter.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:Evad37/EditWarChecker.js'); // [[User:Evad37/EditWarChecker]]
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:The Earwig/revdel-responder.js'); // [[User:The Earwig/revdel-responder.js]]
importScript("User:RedWarn/.js");
importScript("User:Enterprisey/reply-link.js"); // Backlink: [[User:Enterprisey/reply-link.js]];
importScript("User:Evad37/rater.js"); // [[User:Evad37/rater]];
importScript("User:Lourdes/PageCuration.js"); // Linkback: [[User:Lourdes/PageCuration.js]];
importScript("User:GeneralNotability/spihelper.js"); // Backlink: [[User:GeneralNotability/spihelper.js]];
importScript( 'User:DannyS712/Draft no cat.js' );// [[User:DannyS712/Draft no cat.js]]
importScript( 'User:EnterpriseyBot/delsort.js' ); // Backlink: [[User:EnterpriseyBot/delsort.js]]
importScript( 'User:Evad37/OneClickArchiver.js' ); // [[User:Evad37/OneClickArchiver]];
importScript( 'User:Ahecht/Scripts/pageswap.js' ); // Backlink: [[User:Ahecht/Scripts/pageswap]]
importScript( 'User:SD0001/StubSorter.js' ); // [[User:SD0001/StubSorter]]
importScript('User:Galobtter/Shortdesc helper.js');
mw.loader.load( '/enwiki/w/index.php?title=User:Evad37/duplinks-alt.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/duplinks-alt.js]]
// importScript('User:Fox Wilson/up.js'); // [[User:Fox Wilson/up.js]]

/*** 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: 2021, month: 5, day: 27 };
	var time = { hours: 8, minutes: 0, 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!");
		mw.loader.using(["mediawiki.api", "mediawiki.user"]).then(function ()
		{
			new mw.Api().post(
			{
				action: 'logout',
				token: mw.user.tokens.get('csrfToken')
			}).done(function (data)
			{
				location = "//" + location.host + "/enwiki/w/index.php?title="
					 + "Special:Userlogin&returnto=Main_Page";
			}).fail(function ()
			{
				console.log("logout failed")
			});
		});
	}
});
/*** END WIKIBREAK ENFORCER ***/