User:KCCreations/global.js

/*Refresh (checkmark)*/ var ajaxPages = ["Blog:Recent_posts", "Special:WikiActivity", "Special:RecentChanges", "Special:Log", "Special:Contributions", "Special:NewFiles"]; window.ajaxRefresh = 30000;

//Quick create user page config templateLanguages = ['de', 'es', 'nl']; qtUserPageTemplate = '';

var qtEnableUserPageOverwrite = true;

//QuickToolsv2 in toolbar var QuickToolsAdvancedtop = false;

//AjaxBatchDelete batchDeleteDelay = 1000;

//MassNullEdit nullEditDelay = 1000; nullEditUserButton = true;

//MassProtect massProtectDelay = 1000;

//MassRename if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { massRenameDelay = 1000; massRenameSummary = 'Fixing names'; importScriptPage('MediaWiki:MassRename/code.js', 'dev'); };

//MassUserRights, but only on wikis where I am a bureaucrat if (mw.config.get("wgUserGroups").indexOf('bureaucrat') > -1) { massUserRightsDelay = 1000; importScriptPage('MediaWiki:MassUserRights/code.js', 'dev'); };

/* global header, by Slyst and Jr Mime globalnavcolor = setInterval(function {   if ($('.wds-community-header').length) {        $('.wds-community-header').css('background-color', $('.navbackground').css('background-color'));        clearInterval(globalnavcolor);    } }, 150); */

// Script imports window.importArticles( {   type: 'script',    articles: [      'u:admintools:MediaWiki:Common.js/extraRollbacks.js',      'u:dev:!bang/code.js',      'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',      'u:dev:MediaWiki:AjaxPatrol/code.js',      'u:dev:MediaWiki:AjaxRC/code.js',      'u:dev:MediaWiki:AllPagesHideRedirect/code.js',      'u:dev:MediaWiki:AnchoredRollback/code.js',      'u:dev:MediaWiki:CacheCheck/code.js',      'u:dev:MediaWiki:CategoryRenameAuto-update/code.js',      'u:dev:MediaWiki:ChatTimestamps/code.js',      'u:dev:MediaWiki:EditBio/code.js',      'u:dev:MediaWiki:EditConflictAlert/code.js',      "u:dev:MediaWiki:FileUsageAuto-update/code.js",      'u:dev:GlobalChatJS.js',      'u:dev:MediaWiki:LastEdited/code.js',      'u:dev:MediaWiki:MassNullEdit/code.js',      'u:dev:MediaWiki:MassProtect/code.js',      'u:dev:MediaWiki:PageRenameAuto-update/code.js',      'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:QuickToolsv2/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:MediaWiki:View_Source/code.js', 'u:dev:MediaWiki:VSTFReport.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:WorkingMoreUsersCount.js' ] });

// BEGIN BotoneraPopups importScriptURI('http://dev.wikia.com/wiki/BotoneraPopups/Code/en.js?action=raw&ctype=text/javascript&templates=expand'); importStylesheetPage('BotoneraPopups/code.css', 'dev'); // END

/* Langscan (thanks Monch!) */ /////////// //Import importScriptURI('https://pastebin.com/raw/AGusXuNv');

$('.toolbar .tools').append($(' Langscan')); ///////////

/* Make Visual Editor links load the regular editor instead */ if ($.getUrlVar('veaction') == 'edit') location.replace(document.URL.replace('veaction','action'));

/* qqx */ ///////// var qqxURL;

if (window.location.href.indexOf('?uselang=qqx') !== -1) { qqxURL = '/' + encodeURIComponent(wgPageName); } else { qqxURL = '/' + encodeURIComponent(wgPageName) + '?uselang=qqx'; }

$('.toolbar .tools').append($(' qqx')); /////////

// ******************************************************** // Remove AutoSummary During Deletion - Created by Josephyr // ******************************************************** $(function {    // Clears the delete additional reason box if it's an autosummary    if (wgAction && wgAction === "delete") {        var deleteBox = document.getElementsByName("wpReason")[0];        if (deleteBox && deleteBox.value.search("content was") === 0) {            deleteBox.value = "";        }    } });