Jump to content

User:PorkchopGMX/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by PorkchopGMX (talk | contribs) at 04:48, 9 January 2021 (leaving). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
/* Welcome to PorkchopGMX's .js page. Please do not hack this page, as you could summon a bunch of aliens at once that will demolish my account if you do that. */

importScript ('User:Nigos/scripts/RecentChanges.js');
importScript('User:Enterprisey/CustomSummaryPresets.js'); //Linkback: [[User:Enterprisey/CustomSummaryPresets.js]] Added by Script installer
/*Custom summaries below */var customGeneralSummaries = [
"Removing/orphaning soon to be deleted template, see [[N/A]]",
"Substituting soon to be deleted template, see [[N/A]]",
];
importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user
importScript("User:Writ Keeper/Scripts/teahouseTalkback.js"); // Adds Talkback reminder when you save an edit at the Teahouse
importScript("User:Writ Keeper/Scripts/teahouseTalkbackLink.js"); // Adds a talkback link to signatures on the Teahouse
importScript("User:Ocaasi/WikiLoveinstallscript.js");// Adds Teahouse Badges to WikiLove
importScript( 'User:Σ/Testing facility/Archiver.js' ); // Backlink: [[User:Σ/Testing facility/Archiver]]
importScript('User:Danski454/goToTop.js'); //Linkback: [[User:Danski454/goToTop.js]] Added by Script installer
importScript('User:DannyS712/Easy-link.js'); //Linkback: [[User:DannyS712/Easy-link.js]] Added by Script installer
mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:%C3%9Ejarkur/NeverUseMobileVersion.js&action=raw&ctype=text/javascript" );
//importScript('User:RedWarn/.js'); //Linkback: [[User:RedWarn/.js]] Added by Script installer
/* Automate purge confirmation dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
       $('form[action*="action=purge"]').submit();
}
importScript('User:Awesome Aasim/rcpatrol.js'); // Backlink: [[User:Awesome Aasim/rcpatrol.js]]
importScript('User:Enterprisey/reply-link.js'); // Backlink: [[User:Enterprisey/reply-link.js]]
window.replyLinkPreloadPing = "button";
window.replyLinkCustomSummary = true;
importScript('User:SD0001/deleted-metadata-link.js'); // Backlink: [[User:SD0001/deleted-metadata-link.js]]
//importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
importScript('User:Awesome Aasim/savedraft.js'); // Backlink: [[User:Awesome Aasim/savedraft.js]]
importScript('User:Awesome Aasim/xfdvote.js'); // Backlink: [[User:Awesome Aasim/xfdvote.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: 2, day: 1}; var time = { hours: 0, 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 + "/w/index.php?title=" + "Special:Userlogin&returnto=Main_Page"; }).fail(function () { console.log("logout failed") }); }); } }); /*** END WIKIBREAK ENFORCER ***/