User:KockaAdmiralac/global.js

/** * NOTE: Copying anything from here is done on your own risk, however, *      giving credit to the place you copied your code from is required. */ window.topLevelCat = 'Browse'; ajaxPages = ["Special:RecentChanges", "Special:WikiActivity", "Special:Log", "Special:Log/upload", "Special:Newwikis", "Special:AbuseLog"]; batchDeleteDelay = massCategorizationDelay = massProtectDelay = nullEditDelay = 10; window.AjaxCommentDeleteConfig = { fastDelete: "Deleting comment" }; window.ImageNotificationConfig = { refreshInterval: 1000000, enableOn: ["Special:BlankPage/Images"] }; window.globalLinks = { global: { "User": "Special:Mypage", "Talk": "Special:Mytalk", "Settings": "Special:Preferences", "Admins": "Special:ListAdmins", "Log off": "Special:UserLogout?returnto=%page%", "Contribs": "Special:Contributions/%user%", "Purge": "%page%?action=purge", "QQX": "%page%?uselang=qqx", "Raw": "%page%?action=raw", "Log": "Special:Log" },   community: { "AL": "Special:AbuseLog", "NW": "Special:Newwikis", "Images": "Special:BlankPage/Images", "Global JS": "Special:Mypage/global.js", "Global CSS": "Special:Mypage/global.css" },   undertale: { "AL": "Special:AbuseLog" } };

var regularList = [ 'u:dev:MediaWiki:AjaxRC/code.js', 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:MediaWiki:AnchoredRollback/code.js', 'u:dev:MediaWiki:CacheCheck/code.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:QuickDiff/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:ViewRemovedAlways/code.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:kocka:MediaWiki:ImageNotification/code.js', // Personal sandbox scripts 'u:kocka:User:KockaAdmiralac/AutoWideCodeeditor.javascript', 'u:kocka:User:KockaAdmiralac/EmptyDeleteReason.javascript', 'u:kocka:User:KockaAdmiralac/GlobalEditcount.javascript', 'u:kocka:User:KockaAdmiralac/ToggleSideBar.javascript', 'u:kocka:User:KockaAdmiralac/WikiActivityIsForNubs.javascript', 'u:kocka:User:KockaAdmiralac/GlobalNavModifications.javascript', 'u:monchbox:MediaWiki:Torus.js' ], adminList = [ 'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', 'u:dev:MediaWiki:AjaxPatrol/code.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:kocka:MediaWiki:AjaxCommentDelete/code.js', 'u:kocka:MediaWiki:AjaxThreadDelete/code.js', 'u:kocka:MediaWiki:MessageWallActions/code.js' ];

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