[go: nahoru, domu]

Jump to content

User:Aseleste/common.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Aseleste (talk | contribs) at 06:41, 3 June 2021 (Undid revision 1026601959 by Aseleste (talk) - test done). 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.
/* configuration */
// [[MediaWiki:Gadget-popups.js]]
window.popupStructure = 'menus';
window.popupAdminLinks = true;
window.popupTocLinks = true;
window.popupFixRedirs = true;
window.popupRedirAutoClick = 'wpSave';
window.popupFixDabs = true;
window.popupDabsAutoClick = 'wpSave';
window.popupRedlinkRemoval = true;
window.popupRedlinkAutoClick = 'wpSave';
window.popupRevertSummaryPrompt = true;
window.popupReview = true;
window.popupMinorReverts = true;

// [[User:Enterprisey/reply-link.js]]
window.replyLinkCustomSummary = true;

// [[User:Ale jrb/Scripts/csdhelper.js]]
window.notifyByDefaultDel = false; // whether to automatically check the 'notify user' box when changing a speedy deletion rationale
window.notifyByDefaultDec = true; // whether to automatically check the 'notify user' box when declining a speedy deletion
window.notifyByDefaultPrd = true; // whether to automatically check the 'notify user' box when converting a speedy deletion to a PROD
window.notifyByDefaultNew = false; // whether to automatically check the 'use newbie message' box when notifying a user
window.csdhDisplayAlways = true; // whether to show the tab all the time (true) or only when a speedy template is detected (false, default)
window.csdhDoRedirect = true; // whether to redirect after a deletion
window.notifyLimit = 15; // how many revisions to check for the user who tagged the page
// window.notifyTemplate = 'template page name'; // the template to use when posting any notifications
// window.redirectAfterDel = URL [as string]; // the URL to redirect to after deleting a speedy page (default: CSD category)
// window.overwriteDeclineReasons = false; // whether to overwrite the existing decline reasons with the user-provided array (if false, user options will be appended)
// window.myDeclineReasons = new Array(['A', 'A dec reason.'], ['B', 'B dec reason.'], ['C', 'C dec reason.']); // an array of additional decline reasons in the form ['code', 'description']. Separate options with a comma, as shown.
// window.myDeleteReasons = new Array(['A', 'A del reason.'], ['B', 'B del reason.'], ['C', 'C del reason.']); // an array of additional deletion reasons in the form ['code', 'description']. Separate options with a comma, as shown.
// window.myDeclineListing = '%CRITERION% - %REASON%'; // the string to use in the drop-down selection box. Parameters include: %CRITERION% (criterion specified), %REASON% (reason specified).
// window.myDeclineSummary = 'Text - %REASON%'; // the string to use as the edit summary for 'normal' decline cases (invalid criterion). Parameters include: %ACTION% (declined/contested depending on sysop), %CRITERION% (criterion specified), %REASON% (reason specified).
// window.myDeclineSummarySpecial = 'Test - %REASON%'; // the string to use as the edit summary for 'special' decline cases (no criterion provided etc). Parameters include: %ACTION% (declined/contested depending on sysop), %REASON% (reason specified).
window.logOnDecline = true; // whether to log decline actions.
window.logOnDeclinePath = 'User:Aseleste/Logs/CSD Helper log'; // where to log decline actions.
// hack to make CSD Helper work better
$.when(
		mw.loader.using(['mediawiki.util']),
		$.ready
	).then(function() {
		if (mw.config.get('wgArticleId') !== 0) { // page exists
 			// add portlet move link
 			mw.util.addPortletLink('p-cactions', mw.util.getUrl('Special:MovePage/' + mw.config.get('wgPageName')), 'move', 'ca-move', 'Rename this page', 'm', null);
		}
	})


/* stylesheet */
importStylesheet('User:Anomie/linkclassifier.css'); // Backlink: [[User:Anomie/linkclassifier.css]]
importStylesheet('User:Aseleste/Stylesheets/Extensions/Link classifier/Blackskin.css'); // Backlink: [[User:Aseleste/Stylesheets/Extensions/Link classifier/Blackskin.css]]


/* script */
// this is after the 'stylesheet' section to make the script installer work better
importScript('User:Ale jrb/Scripts/waLib.js'); // Backlink: [[User:Ale jrb/Scripts/waLib.js]]
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
importScript('User:Frietjes/findargdups.js'); // Backlink: [[User:Frietjes/findargdups.js]]
importScript('User:GregU/dashes.js'); // Backlink: [[User:GregU/dashes.js]]
importScript('User:Nihiltres/assesslinks.js'); // Backlink: [[User:Nihiltres/assesslinks.js]]
importScript('User:Anomie/linkclassifier.js'); // Backlink: [[User:Anomie/linkclassifier.js]]
importScript('User:Wugapodes/Capricorn.js'); // Backlink: [[User:Wugapodes/Capricorn.js]]
importScript('User:Σ/Testing facility/Archiver.js'); // Backlink: [[User:Σ/Testing facility/Archiver.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Lourdes/PageCuration.js'); // Backlink: [[User:Lourdes/PageCuration.js]]
importScript('User:Evad37/MoveToDraft.js'); // Backlink: [[User:Evad37/MoveToDraft.js]]
importScript('User:GeneralNotability/spihelper.js'); // Backlink: [[User:GeneralNotability/spihelper.js]]
importScript('User:Aseleste/Scripts/Purger.js'); // Backlink: [[User:Aseleste/Scripts/Purger.js]]
importScript('User:Enterprisey/AFCRHS.js'); // Backlink: [[User:Enterprisey/AFCRHS.js]]
importScript('User:Awesome Aasim/xfdvote.js'); // Backlink: [[User:Awesome Aasim/xfdvote.js]]
importScript('User:Enterprisey/delsort.js'); // Backlink: [[User:Enterprisey/delsort.js]]
importScript('User:Gracenotes/rollback.js'); // Backlink: [[User:Gracenotes/rollback.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:Enterprisey/reply-link.js'); // Backlink: [[User:Enterprisey/reply-link.js]]
importScript('User:Writ Keeper/Scripts/commonHistory.js'); // Backlink: [[User:Writ Keeper/Scripts/commonHistory.js]]
importScript('User:BrandonXLF/FFUHelper.js'); // Backlink: [[User:BrandonXLF/FFUHelper.js]]
importScript('User:DannyS712/SATG.js'); // Backlink: [[User:DannyS712/SATG.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: [[User:DannyS712/DiscussionCloser.js]]
importScript('User:SD0001/DYK-helper.js'); // Backlink: [[User:SD0001/DYK-helper.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:DannyS712/EFFPRH.js'); // Backlink: [[User:DannyS712/EFFPRH.js]]
importScript('User:TheTVExpert/rmCloser.js'); // Backlink: [[User:TheTVExpert/rmCloser.js]]
importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[user:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:Terasail/COI Request Tool.js'); // Backlink: [[User:Terasail/COI Request Tool.js]]
importScript('User:Ahecht/Scripts/pageswap.js'); // Backlink: [[User:Ahecht/Scripts/pageswap.js]]
importScript('User:Plastikspork/massmove.js'); // Backlink: [[User:Plastikspork/massmove.js]]
importScript('User:SD0001/deleted-metadata-link.js'); // Backlink: [[User:SD0001/deleted-metadata-link.js]]
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js'); // Backlink: [[User:Writ Keeper/Scripts/peerReviewCloser.js]]
importScript('User:Ale jrb/Scripts/csdhelper.js'); // Backlink: [[User:Ale jrb/Scripts/csdhelper.js]]
importScript('User:SD0001/dark-mode-toggle.js'); // Backlink: [[User:SD0001/dark-mode-toggle.js]]