User:Eizen/global.js

/** * Assorted window variables */ window.wgWikiaChatWindowFeatures = ""; window.ajaxPages = ["Special:WikiActivity", "Special:RecentChanges"]; window.pageCreatorTimestamp = true; window.lastEdited = { avatar: false, size: false, comment: false, namespaces: { include: [0, 4, 8, 10, 14], exclude: [1, 2, 3, 5, 6, 7, 9, 11, 12, 15, 110, 111, 828, 829, 1202] } }; window.NavLinksConfig = { title: "QuickLinks", placement: "global", links: [ {           text: "Eizen", address: "w:c:eizen:Special:WikiActivity" },       {            text: "Dev", address: "w:c:dev:Special:WikiActivity" },       {            text: "API", address: "w:c:api:Special:WikiActivity" },       {            text: "Diep.io", address: "w:c:diepio:Special:WikiActivity" },       {            text: "SWFanon", address: "w:c:swfanon:Special:WikiActivity" }   ] };

/** * General purpose imports to all wikis */ importArticles({   type: "script",    articles: [        "u:dev:AjaxRC/code.js",        "u:dev:GlobalChatJS.js",        "u:dev:AjaxUndo/code.js",        "u:dev:NavLinks/code.js",        "u:dev:TallyLink/code.js",        "u:dev:Rollback/code.2.js",        "u:dev:DisableCode/code.js",        "u:dev:ToolbarLinks/code.js",        "u:dev:PortableCSSPad/code.js",        "u:dev:CodeQuickLinks/code.js",        "u:dev:NullEditButton/code.js",        "u:dev:RevealAnonIP/usercode.js",        "u:dev:SkinSwitchButton/code.js",        "u:dev:MediaWikiBacklink/code.js",        "u:dev:Thread Inspection/code.js",        "u:dev:ConsistentModules/code.js",        "u:eizen:User:Eizen/BotEdit.javascript",        "u:eizen:User:Eizen/AnonLookup.javascript",        "u:eizen:User:Eizen/CreateUserPage.javascript"    ] });

/** * User page-related scripts */ if (   jQuery("#UserProfileMasthead").exists &&    jQuery(".UserProfileMasthead .masthead-info h1").text !== "Eizen" &&    mw.config.get("wgSitename") !== "Eizen" ) { importArticles({       type: "script",        articles: [            "u:dev:UnhideUserMasthead/code.js",            "u:dev:UserAccountAge/beta.js"        ]    }); }

/** * Page-specific imports */ if (mw.config.get("wgCityId") === "1619339" && mw.config.get("wgArticleId") === 98) { window.customToolbarLinks = [ {           action: "link", address: "MediaWiki:Common.css?action=edit", title: "Common" }   ]; }

/** * Wiki-specific imports */ switch (mw.config.get("wgCityId")) { case "644": importArticles({       type: "script",        articles: [            "u:dev:LastEdited/code.js",            "u:dev:PageCreator/code2.js",            "u:eizen:User:Eizen/UploadModal.javascript"        ]    }); break; case "177": window.customToolbarLinks = [ {           action: "link", address: "User:Eizen/global.js?action=edit", title: "GJS" },       {            action: "link", address: "User:Eizen/global.css?action=edit", title: "GCSS" },       {            action: "link", address: "Template:User:Eizen?action=edit", title: "Temp" },       {            action: "import", script: "EditBio/code.js", title: "EB" }   ];    break; case "1619339": importArticles({       type: "script",        articles: [            "u:dev:UTCClock/code.js"        ]    }); break; }