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: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

if (mw.config.get("wgCityId") === "1585084") { console.log("Global.js - Loading UTCClock"); importScriptPage("UTCClock/code.js", "dev"); }

if (mw.config.get("wgCityId") === "644") { console.log("Global.js - Loading LastEdited and PageCreator"); importScriptPage("LastEdited/code.js", "dev"); importScriptPage("PageCreator/code2.js", "dev"); }

if (mw.config.get("wgCityId") === "177") { console.log("Global.js - Loading EditBio"); importScriptPage("EditBio/code.js", "dev"); }

// 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); }