User:KCCreations/global.js

$(function { /* use monobook when editing CSS/JS pages. */ if (wgCityId == 4470) return; if ((wgPageName.substr(-3) == ".js") || (wgPageName.substr(-4) == ".css")) {    $("a[href*='.js?action=edit'], a[href*='.css?action=edit']").each(function{ $(this).attr("href", $(this).attr("href").replace('?action=edit', '?action=edit&useskin=monobook&usesitecss=0')); });   if (mw.util.getParamValue('action') == "edit") {      if (!mw.util.getParamValue('useskin') ) {        window.location.href = window.location.href.replace('?action=edit','?action=edit&useskin=monobook&usesitecss=0');        }      else {        $("#editform").attr("action", $("#editform").attr("action")+"&useskin="+mw.util.getParamValue('useskin'));        }      }    } });

/* Uncheck the option for leaving a redirect when renaming files */ /* Thanks User:Ozuzanna! */ if (c.wgPageName.indexOf("Special:MovePage/File:") !== -1) $('#wpLeaveRedirect').removeAttr('checked'); /* If I've been in the editor for more than 30 seconds, uncheck the "Minor edit" box */ /* Thanks again, Ozzy. =P */ if (c.wgAction === 'edit' || c.wgAction === 'SUBMIT') { setTimeout(function {   if ($('#wpMinoredit').attr( 'CHECKED'))       $('#wpMinoredit').removeAttr('checked');  }, 30000); }

// END Randomness From w:User:Ozuzanna's global.js //

//quick create user page config var qtUserPageTemplate = ''; var qtEnableUserPageOverwrite = true;

// Script imports window.importArticles( {   type: 'script',    articles: [      'u:a:MediaWiki:Gadget-HotCat.js',      'u:admintools:MediaWiki:Common.js/extraRollbacks.js',      "u:dev:AjaxBatchDelete/code.2.js",      "w:c:dev:AjaxPatrol/code.js",      'u:dev:AllPagesHideRedirect/code.js',      "u:dev:AnchoredRollback/code.js",      'u:dev:BackToTopButton/code.js',      "u:dev:ContribsLink/code.js",      'u:dev:DisplayClock/code.js',      'u:dev:LastEdited/code.js',      'u:dev:Message/code.js',      'u:dev:PageMakerPro/code.js',      'u:dev:PurgeButton/code.js',      'u:dev:QuickContribs/code.js',      'w:dev:QuickCreateUserPage/code.js',      "w:c:dev:RevealAnonIP/usercode.js",      'u:dev:View_Source/code.js',      "u:dev:WHAM/code.2.js",    ] });

importScriptPage('MediaWiki:Common.js/ajaxRefresh.js', 'admintools');