User:Count of Howard/global.js

window.ajaxPages = ["Special:WikiActivity", "Special:RecentChanges"]; window.AjaxRCRefreshText = 'AJAX'; window.AjaxRCRefreshHoverText = 'Auto-refresh'; window.wgWikiaChatWindowFeatures = ''; window.talkWikis = ['diepio']; window.pageCreatorAvatar = true; window.pageCreatorTimestamp = true; window.pageCreatorUTC = true; window.lastEdited = { namespaces: { include: [0, 4, 8, 10, 14], exclude: [1, 2, 3, 5, 6, 7, 9, 11, 12, 15, 110, 111, 828, 829, 1202] } };

//Loaded by default importArticles({   type: "script",    articles: [        "u:dev:AjaxRC/code.js",        "u:dev:GlobalChatJS.js",        "u:dev:MediaWikiBacklink/code.js",        "u:dev:BlogLink/code.js",        "u:dev:CodeQuickLinks/code.js",        "u:dev:AntiSoundcloud/code.js",        "u:dev:UserTalkNotifications/code.js",        "u:dev:NullEditButton/code.js",        "u:dev:Thread Inspection/code.js",        "u:dev:MediaWiki:WorkingMoreUsersCount.js",        "u:cohdev:User:Count_of_Howard/OCCI.coh",        "u:cohdev:User:Count_of_Howard/ECPL.coh",    ] });

//Clean imports - by Uzer:Coconut of Howard

/*jslint browser*/ /*global window, jQuery, mediaWiki*/

(function ($, mw) {   "use strict";

var scriptDivs = { "dev": { title: "Click to enable development scripts", text: "Dev", articles: [ "u:dev:PortableCSSPad/code.js", "u:dev:DisableCode/code.js", "u:cohdev:User:Count_of_Howard/ESSB.coh", "u:dev:MediaWiki:View_Source/code.js" ]       },        "addons": { title: "Click to enable assorted addons", text: "Addons", articles: [ "u:dev:LastEdited/code.js", "u:dev:PageCreator/code2.js", "u:dev:UsernameAvailability/code.js", "u:dev:UserActivityTab/code.js", "u:dev:DifferentSkinEditor/code.js", "u:dev:UserAccountAge/beta.js", "u:dev:ToggleSideBar/code.js", "u:dev:ShowUserGroups.js", "u:cohdev:User:Count_of_Howard/MUUW.coh", "u:cohdev:User:Count_of_Howard/MG.lenny" ]       },        "upkeep": { title: "Click to enable page upkeep scripts", text: "Upkeep", articles: [ "u:dev:Rollback/code.2.js", "u:dev:MassEdit/code.js", "u:dev:SelectiveDelete/code.js", "u:cohdev:User:Count_of_Howard/QCUP.coh" ]       }    };

function assembleTools(title, text, articles) { var scriptButton = mw.html.element("li", {           id: text        }, new mw.html.Raw( mw.html.element("a", {               href: "#",                title: title,                id: text + "-a"            }, text) ));

$(scriptButton).appendTo(".toolbar .tools");

$("#" + text + "-a").click(           function  {                importArticles({ type: "script", articles: articles });               $("#" + text).remove;            }        ); }

function init { assembleTools(           scriptDivs.dev.title,            scriptDivs.dev.text,            scriptDivs.dev.articles        ); assembleTools(           scriptDivs.addons.title,            scriptDivs.addons.text,            scriptDivs.addons.articles        ); assembleTools(           scriptDivs.upkeep.title,            scriptDivs.upkeep.text,            scriptDivs.upkeep.articles        ); }

init; }(jQuery, mediaWiki));