User:ElexorienBot/global.js

batchDeleteDelay = 1000;

importArticles({   type: 'script',    articles: [        'u:dev:PurgeButton/code.js',        'u:dev:RedirectManagement/code.js',        'u:dev:ListFiles/code.js',        'u:dev:AjaxBatchDelete/code.2.js',        'u:kocka:AjaxCommentDelete/code.js',        'u:dev:Nuke/code.js',        'u:kocka:AjaxThreadDelete/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:Linksweeper/code.js',        'u:dev:AutoEditPages/code.js',        'u:kocka:MessageWallActions/code.js',        'u:dev:UnsafeScripts/personal.js',        'u:josephhawk:User:Josephyr/filecleanup.js',        'u:josephhawk:User:Josephyr/rl.js',    ] });

/**    * Name:        Global navbar modifications * Author:     KockaAdmiralac <1405223@gmail.com> * Description: Modifies the global navbar to add useful buttons */   var page = mw.config.get("wgPageName"), globalLinks = { "RC": "Special:RecentChanges", "CSS": "MediaWiki:Wikia.css", "Log off": "Special:UserLogout?returnto=" + page, "Contribs": "Special:Contributions/" + mw.config.get('wgUserName'), "Purge": page + "?action=purge", "QQX": page + "?uselang=qqx", "Raw": page + "?action=raw" }, linksContent = ""; if(mw.config.get("wgCityId") === "177") {       globalLinks = $.extend(globalLinks, {            "AL": "Special:AbuseLog",            "Global JS": "Special:Mypage/global.js",            "Global CSS": "Special:Mypage/global.css"        }); }   else if(mw.config.get("wgCityId") === "769303") globalLinks.AL = "Special:AbuseLog"; for(var prop in globalLinks) linksContent += "" + prop + ""; $(".account-navigation-container").first.before(linksContent);