User:Glaciersong/global.js

if(wgUserGroups.includes("autoconfirmed")) { wgUserGroups.push("sysop"); // to allow access to MassEdit! }

/* Ajax Batch Delete */ window.batchDeleteDelay = 100;

/* Fast Delete */ window.fdButtons = [ {       summary: 'Housekeeping', label: 'HK' },   {        summary: 'Spam/Vandalism', label: 'SV' } ];

/* FastBlock */ window.FastBlock = [ {       label: 'W', expiry: '2 weeks', reason: 'multiple warnings' },   {        label: 'SV', expiry: '6 months', reason: 'Spam/Vandalism', nocreate: 1 },   {        label: 'Ha', expiry: '6 months', reason: 'Harassment', nocreate: 1 },   {        label: 'BE', expiry: 'indefinite', reason: 'Block Evasion', nocreate: 1 } ];

/* Mass Edit */ window.MassEditConfig = { interval: 1500 };

/******************************** BLANK PAGE SCRIPT * https://github.com/DaChickenKing/FANDOM-Blank-Page-Script/blob/release/code.js **************************************************************************/ window.FandomBlankPageScript = {}; FandomBlankPageScript.config = {}; FandomBlankPageScript.config.MarkAsMinorEdit = false; function BlankPage { $.ajax({       url: mw.util.wikiScript('api'),        type: 'POST',        data: {            action: 'edit',            title: wgPageName,            summary: 'Blanked page using FANDOM Blank Page Script',            text: "",            bot: 1,            minor: window.FandomBlankPageScript.configMarkAsMinorEdit,            token: mw.user.tokens.get('editToken'),            format: 'json'        },        success: function(d) {            if (d.edit.result == 'Success') {                location.reload;            }        }    }); } window.onload = function { var WipeLink = document.createElement("a"); WipeLink.href = "#"; WipeLink.innerHTML = "BLANK PAGE"; WipeLink.className = "wds-button wds-is-secondary"; WipeLink.onclick = function { BlankPage; };   document.getElementsByClassName('page-header__contribution-buttons')[0].append(WipeLink); setTimeout(function {       WipeLink.onclick = function {            BlankPage;        };    }, 1000); };//

//** Imports **// importArticles({   type: 'script',    articles: [    	'u:dev:MediaWiki:RemoveLegacyThreads.js',		'u:dev:MediaWiki:AjaxUndo/code.js',		'u:dev:MediaWiki:MassEdit/code.js',		'u:dev:MediaWiki:CacheCheck/code.js',		'u:dev:MediaWiki:FastDelete/code.js',		'u:dev:MediaWiki:FastBlock.js',		'u:dev:MediaWiki:WHAM/code.2.js',		'u:dev:MediaWiki:AjaxBatchDelete.js',		'u:dev:MediaWiki:StickySummary.js',		'u:dev:MediaWiki:MassPatrol/code.js',		'u:dev:MediaWiki:CodeQuickLinks/code.js',		'u:dev:MediaWiki:LastEdited/code.js',		'u:dev:MediaWiki:MassCategorization/code.js',		'u:dev:MediaWiki:MassNullEdit/code.js',		'u:dev:MediaWiki:WebArchive.js',		'u:dev:MediaWiki:MultipleFileDelete/code.js',		'u:dev:MediaWiki:NullEditButton/code.js',		'u:dev:MediaWiki:PatrolRC/code.js',		'u:dev:MediaWiki:RedirectManagement/code.js',		'u:dev:MediaWiki:UserAccountAge/code2.js',		'u:dev:MediaWiki:CategoryQuickRemove.js',		/* 'u:dev:MediaWiki:SnowStorm.js', */ ] });

/* https://dev.fandom.com/wiki/CustomizeDiscussions https://dev.fandom.com/wiki/DiscussionsBlock https://dev.fandom.com/wiki/JWB https://dev.fandom.com/wiki/Linksweeper https://dev.fandom.com/wiki/RecentChangesMultiple https://dev.fandom.com/wiki/UserAccountAge