User:Monochromatic Bunny/global.js

window.globalLinks = { global: { "RC": "Special:RecentChanges", "CSS": "MediaWiki:Wikia.css", "Log off": "Special:UserLogout?returnto=%page%", "Admins": "Special:ListUsers/sysop", "Contribs": "Special:Contributions/%user%", "Purge": "%page%?action=purge", "QQX": "%page%?uselang=qqx", },   community: { "Global JS": "Special:Mypage/global.js", "Global CSS": "Special:Mypage/global.css" }, };

/* credit to kockadmiralac for js */ var regularList = [ 'u:dev:AjaxUndo/code.js', 'u:dev:CacheCheck/code.js', 'u:dev:FindAndReplace/code.js', 'u:dev:ListFiles/code.js', 'u:dev:NullEditButton/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:QuickCreateUserPage/code.js', 'u:dev:QuickDiff/code.js', 'u:dev:RedirectManagement/code.js', 'u:dev:Rollback/code.js', 'u:dev:ViewRemovedAlways/code.js', 'u:dev:GlobalEditcount/code.js', 'u:monobunny:User:Monochromatic_Bunny/common.js', 'u:dev:ChatHacks.js', ], adminList = [ 'u:dev:AjaxBatchDelete/code.2.js', 'u:dev:AjaxBlock/code.js', 'u:dev:AjaxPatrol/code.js', 'u:dev:AutoEditPages/code.js', 'u:dev:FastDelete/code.js', 'u:dev:SkinSwitchButton/code.js', 'u:dev:WHAM/code.2.js', 'u:kocka:AjaxCommentDelete/code.js', 'u:kocka:AjaxThreadDelete/code.js', 'u:kocka:MessageWallActions/code.js', 'u:dev:CategoryRenameAuto-update/code.js',

];

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

if (mw.config.get('wgPageName') === 'Special:Torus') { importScriptURI('http://monchbox.wikia.com/wiki/MediaWiki:Torus.js/main.js?action=raw&ctype=text/javascript&templates=expand&t='); }