User:Premeditated/common.js

// Based on the script at WikiProject User scripts/Scripts/WikiBreak Enforcer // Built for taking a wikibreak, but only starting later // Set when it will start, and how long it will last for /*** BEGIN WIKIBREAK PLANNER ***/ $(document).ready(function {	/*** Start editing here ***/	// no leading zeroes. (example: 9 - correct, 09 - incorrect)	// start date and time	var date1 = { year: 2018, month: 12, day: 6};	var time1 = { hours: 22, minutes: 0, seconds: 0 };

// end date and time var date2 = { year: 2018, month: 12, day: 17}; var time2 = { hours: 20, minutes: 35, seconds: 0 }; /*** Stop editing here ***/ var currentDate = new Date; var breakStart = new Date(		date1.year,date1.month-1,date1.day,time1.hours,time1.minutes,time1.seconds); var enforcedBreakEnd = new Date(		date2.year,date2.month-1,date2.day,time2.hours,time2.minutes,time2.seconds); if ((currentDate >= breakStart) && (currentDate <= enforcedBreakEnd)) { alert("Enforced wikibreak until "+enforcedBreakEnd.toLocaleString			+ "\n(now is "+currentDate.toLocaleString+")\n\nBye!"); /*** The line below sets the page to which you will be sent. * Leaving it completely commented out means you will not be directed anywhere. * Leaving it as the default directs you to the logout page, and automatically logs you out. * Default: location = "//"+location.host+"/w/index.php?title=" + "Special:Userlogout&returnto=Main_Page"; ***/		location = "//"+location.host+"/w/index.php?title=" + "Special:Userlogout&returnto=Main_Page"; } }); /*** END WIKIBREAK PLANNER ***/

/*** customWatchlists ***/ importScript( 'User:MusikAnimal/customWatchlists.js' ); // Backlink: User:MusikAnimal/customWatchlists.js

/*** editProtectedHelper ***/ importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: User:Jackmcbarn/editProtectedHelper.js

/*** Ale jrb scripts (multiple) ***/ importScript('User:Ale_jrb/Scripts/statusCheck.js'); //User:Ale_jrb/Scripts importScript('User:Ale_jrb/Scripts/userhist.js'); //User:Ale_jrb/Scripts

/*** archiver ***/ importScript( 'User:Σ/Testing facility/Archiver.js' ); // Backlink: User:Σ/Testing facility/Archiver

/*** last modified ***/ importScript('User:Anomie/lastmod.js'); // Linkback: User:Anomie/lastmod.js

/*** DisamAsst ***/ importScript( 'User:Matthiaspaul/DisamAssist.js' ); // Backlink: User:Matthiaspaul/DisamAssist.js

/*** Prosesize ***/ // User:Dr pda/prosesize mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript');

/*** reFill ***/ mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );

/*** delsort ***/ importScript( 'User:EnterpriseyBot/delsort.js' ); // Backlink: User:EnterpriseyBot/delsort.js

/*** confirm rollback ***/ importScript('User:Mr. Stradivarius/gadgets/ConfirmRollback.js'); // Linkback: User:Mr. Stradivarius/gadgets/ConfirmRollback.js ConfirmRollback = { mobile: "hide", watchlist: "hide", desktop: "confirm" };

/*** rater ***/ importScript('User:Evad37/rater.js'); // User:Evad37/rater

/*** Stub search ***/ importScript( 'User:Danski454/stubsearch.js' ); // Backlink: User:Danski454/stubsearch.js

/*** XDF closer ***/ importScript('User:Evad37/XFDcloser.js'); // User:Evad37/XFDcloser

/*** DYK check ***/ importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool

/*** Short Tab titles ***/ importScript( 'User:Enterprisey/short-tab-titles.js' ); // Backlink: User:Enterprisey/short-tab-titles.js

/*** MoveToDraft ***/ importScript( 'User:Evad37/MoveToDraft.js' ); // Backlink: User:Evad37/MoveToDraft

/*** HotCat ***/ window.hotcat_single_changes_are_minor = true; // Or true

/*** Blackjack ***/ mw.loader.load("/w/index.php?title=User:Writ_Keeper/Scripts/blackjack.css&action=raw&ctype=text/css","text/css"); mw.loader.load("/w/index.php?title=User:Writ_Keeper/Scripts/blackjack.js&action=raw&ctype=text/javascript");

const wikidataID = mw.config.get("wgWikibaseItemId"); wikidataID && $("#firstHeading").append(" (" + wikidataID + ") ");