User:KockaAdmiralac/global.js

window.topLevelCat = 'Browse'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity", "Special:Log", "Special:Log/upload", "Special:Contributions", "Special:NewWikis"]; batchDeleteDelay = massCategorizationDelay = massProtectDelay = 10; window.AjaxCommentDeleteConfig = { fastDelete: "Deleting comment" };

var regularList = [ 'u:dev:MediaWiki:AjaxRC/code.js', 'u:dev:MediaWiki:CacheCheck/code.js', 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:kocka:MediaWiki:VSTFReport/code.js' ], adminList = [ 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:AjaxPatrol/code.js', 'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', 'u:kocka:MediaWiki:AjaxCommentDelete/code.js', 'u:kocka:MediaWiki:AjaxThreadDelete/code.js' ];

/** * Adding stuff to global navbar. */ $(function {   var username = mw.config.get('wgUserName'),    page = mw.config.get("wgPageName"),    globalLinks = {        "User": "User:" + username,        "Talk": "User_talk:" + username,        "Settings": "Special:Preferences",        "RC": "Special:RecentChanges",        "Admins": "Special:ListAdmins",        "Log off": "Special:UserLogout?returnto=" + page,        "Contribs": "Special:Contributions/" + username,        "Purge": page + "?action=purge",        "QQX": page + "?uselang=qqx"    }, linksContent = "";    for(var prop in globalLinks) linksContent += "" + prop + "";    $(".global-navigation-container").append(linksContent); });

importArticles({ type: 'script', articles: (regularList.concat((wgUserGroups.includes("sysop") ? adminList : []))) });