Jump to content

User:WeWake/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.
/*** 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: 2025, month: 8, day: 8};
	var time = { hours: 18, 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);
	$.getJSON("/w/api.php?action=query&meta=siteinfo&siprop=general&format=json", function(data) {
        var serverTimeStr = data.query.general.time; // ISO 8601 string
        var serverTime = new Date(serverTimeStr);

        if (serverTime < 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 + "/w/index.php?title="
						 + "Special:Userlogin&returnto=Main_Page";
				}).fail(function ()
				{
					console.log("logout failed");
				});
			});
        }
	});
});
/*** END WIKIBREAK ENFORCER ***/


importScript('User:SD0001/GAN-helper.js'); // Backlink: [[User:SD0001/GAN-helper.js]]
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
//importScript('User:Ohconfucius/dashes.js');
importScript('User:BilledMammal/MovePlus.js'); // Backlink: [[User:BilledMammal/MovePlus.js]]
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Polygnotus/DuplicateReferences.js'); // Backlink: [[User:Polygnotus/DuplicateReferences.js]]
// Web2Cit
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/Factotum.js&action=raw&ctype=text/javascript');
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Diegodlh/Web2Cit/script.js&action=raw&ctype=text/javascript' ); // Backlink: [[:en:User:Diegodlh/Web2Cit/script.js]]
importScript('User:Writ Keeper/Scripts/deletionFinder.js'); // Backlink: [[User:Writ Keeper/Scripts/deletionFinder.js]]
importScript('User:DannyS712/Draft no cat.js'); // Backlink: [[User:DannyS712/Draft no cat.js]]
importScript('User:DannyS712/Draft re cat.js'); // Backlink: [[User:DannyS712/Draft re cat.js]]
importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: [[User:Novem Linguae/Scripts/VoteCounter.js]]
importScript('User:PleaseStand/highlight-comments.js'); // Backlink: [[User:PleaseStand/highlight-comments.js]]
importScript('User:Amorymeltzer/crathighlighter.js'); // Backlink: [[User:Amorymeltzer/crathighlighter.js]]
importScript('User:PleaseStand/userinfo.js'); // Backlink: [[User:PleaseStand/userinfo.js]]
importScript('User:Awesome Aasim/xfdvote.js'); // Backlink: [[User:Awesome Aasim/xfdvote.js]]
importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
//importScript('User:Phlsph7/WikiChatbot.js'); // Backlink: [[User:Phlsph7/WikiChatbot.js]]
importScript('User:Eejit43/scripts/afcrc-helper.js'); // Backlink: [[User:Eejit43/scripts/afcrc-helper.js]]
importScript('User:Eejit43/scripts/rmtr-helper.js'); // Backlink: [[User:Eejit43/scripts/rmtr-helper.js]]
importScript('User:WeWake/GeminiChat.js'); // Backlink: [[User:WeWake/GeminiChat.js]]
importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:Eejit43/scripts/article-cleaner.js'); // Backlink: [[User:Eejit43/scripts/article-cleaner.js]]
importScript('User:Sophisticatedevening/AfClink.js'); // Backlink: [[User:Sophisticatedevening/AfClink.js]]
importScript('User:Sophisticatedevening/GOCElink.js'); // Backlink: [[User:Sophisticatedevening/GOCElink.js]]
importScript('User:ClaudineChionh/Scripts/highlightPiped.js'); // Backlink: [[User:ClaudineChionh/Scripts/highlightPiped.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
//importScript( 'User:DannyS712/SATG.js' );
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]
importScript('User:DannyS712/deOrphan.js'); // Backlink: [[User:DannyS712/deOrphan.js]]
importScript('User:DannyS712/De-Stub.js'); // Backlink: [[User:DannyS712/De-Stub.js]]
//importScript('User:WeWake/BetterSATG.js'); // Backlink: [[User:WeWake/BetterSATG.js]]
importScript('User:MPGuy2824/scripts/getOresScores.js'); // Backlink: [[User:MPGuy2824/scripts/getOresScores.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:SD0001/shortdescs-in-category.js'); // Backlink: [[User:SD0001/shortdescs-in-category.js]]
importScript('User:Joeytje50/JWB.js/load.js'); // Backlink: [[User:Joeytje50/JWB.js/load.js]]
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.js]]
importScript('User:WeWake/Add to TODO.js'); // Backlink: [[User:WeWake/Add to TODO.js]]
importScript('User:Evad37/ToDoLister.js'); // Backlink: [[User:Evad37/ToDoLister.js]]
//importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript('User:फ़िलप्रो/script/EN-IN.js'); // Backlink: [[User:फ़िलप्रो/script/EN-IN.js]]
importScript('User:Cyberdog958/Scripts/Superlinks.js'); // Backlink: [[User:Cyberdog958/Scripts/Superlinks.js]]
importScript('User:Awesome Aasim/linkinfo.js'); // Backlink: [[User:Awesome Aasim/linkinfo.js]]
importScript('User:DreamRimmer/fixbarerefs.js'); // Backlink: [[User:DreamRimmer/fixbarerefs.js]]
importScript('User:BethNaught/hideSectionDesktop.js'); // Backlink: [[User:BethNaught/hideSectionDesktop.js]]
importScript('User:Gary/nominations viewer.js'); // Backlink: [[User:Gary/nominations viewer.js]]
importScript('User:Kephir/gadgets/unclutter.js'); // Backlink: [[User:Kephir/gadgets/unclutter.js]]
importScript('User:Pythoncoder/Scripts/voteSymbols.js'); // Backlink: [[User:Pythoncoder/Scripts/voteSymbols.js]]
importScript('User:Lourdes/AfDList.js'); // Backlink: [[User:Lourdes/AfDList.js]]
importScript('User:Lourdes/Backlinks.js'); // Backlink: [[User:Lourdes/Backlinks.js]]
importScript('User:Enterprisey/quick-before.js'); // Backlink: [[User:Enterprisey/quick-before.js]]