User:RisenPhoenix/global.js

//purge button config PurgeButtonText = 'Purge';

//last edited config window.lastEdited = { avatar: true, size: true, diff: true, comment: true, time: true };

//chat reload config // Refresh every 1 mins window.chatReloadTime = 100000;

//cache check config cacheSkip = []; cacheSkipLimit = 1000;

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

var qtEnableUserPageOverwrite = true;

//ajax rc config window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"];

if (wgDBname !== 'admintools') { // Script imports window.importArticles( {   type: 'script',    articles: [      'w:dev:QuickCreateUserPage/code.js',       'u:dev:LastEdited/code.js',      'u:dev:Sine/code.js',      "u:dev:ListFiles/code.js",      'u:dev:View_Source/code.js',      'u:dev:CacheCheck/code.js',      'u:dev:ChatReload/code.js',      "w:c:dev:RevealAnonIP/usercode.js",      'u:dev:PortableCSSPad/code.js',      'u:dev:PurgeButton/code.js',      'u:dev:WHAM/code.2.js',      'u:dev:AjaxRC/code.js',      'u:dev:AjaxUndo/code.js',      "u:dev:ContribsLink/code.js",      'u:dev:QQX/code.js',      'u:dev:Thread Inspection/code.js',      'u:dev:SkinSwitchButton/code.js',      'u:dev:RedirectManagement/code.js',      'u:dev:CleanWantedFiles/code.js',      "u:dev:AnchoredRollback/code.js",       'u:dev:DiffAnchored/code.js',      'u:dev:NoImageLightbox/code.js', 'u:admintools:MediaWiki:Common.js/powerUser.js',     ] } ); }

//stuff made by @452

//Restore ogg_player info link click - Wikia has been informed of this problem, and the cause. $(".ogg_player a.image").each(function{ $(this).unbind("click").bind("click", function { window.open($(this).prop("href"));  }); }) $(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')); }}}});