User:Mazro/global.js

window.wgWikiaChatWindowFeatures = ""; window.customUserTemplatesPlacement = "globalNav"; window.AjaxRCRefreshText = "AJAX"; window.AjaxRCRefreshHoverText = "AJAX"; window.pageCreatorTimestamp = true; window.pageCreatorUTC = true; window.ajaxPages = [ "Special:WikiActivity", "Special:RecentChanges", "Special:Log" ]; window.lastEdited = { avatar: false, size: false, timezone: "UTC", namespaces: { include: [0, 4, 8, 10, 14], exclude: [1, 2, 3, 5, 6, 7, 9, 11, 12, 15, 110, 111, 828, 829, 1202] } };

// General imports

importArticles({   type: "script",    articles: [        "u:dev:AjaxRC/code.js",        "u:dev:Rollback/code.2.js",        "u:dev:PortableCSSPad/code.js",        "u:dev:CodeQuickLinks/code.js",        "u:dev:NullEditButton/code.js",        "u:dev:SkinSwitchButton/code.js",        "u:dev:UnhideUserMasthead/code.js",        "u:mazro:MediaWiki:EditcountLink.js",        "u:mazro:MediaWiki:UserTemplates.js"    ] });

// Wiki-specific imports

switch (mw.config.get("wgCityId")) { case "1585084": console.log("Global.js - Loading UTCClock"); importScriptPage("UTCClock/code.js", "dev"); break; case "644": console.log("Global.js - Loading LastEdited & PageCreator"); importScriptPage("LastEdited/code.js", "dev"); importScriptPage("PageCreator/code2.js", "dev"); break; case "177": console.log("Global.js - Loading EditBio & UserAccountAge"); importScriptPage("EditBio/code.js", "dev"); importScriptPage("UserAccountAge/code.js", "dev"); break; }

// Counter UnhideUserMasthead on own userpage

if ($(".UserProfileMasthead .masthead-info h1").text === mw.config.get("wgUserName")) { var $interval = setInterval(function {        if ($(".UserProfileMasthead .wikis").exists) {            clearInterval($interval);            $(".UserProfileMasthead .wikis").css("display", "none");        }    }, 100); }