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:MyContributions", "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/UncategorizedFileListing", "Global JS": "Special:Mypage/global.js", "Global CSS": "Special:Mypage/global.css" },   undertale: { "AL": "Special:AbuseLog" } };

var regularList = [ 'u:admintools:MediaWiki:Common.js/Maintenance.js', '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:GlobalEditcount/code.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:QuickDiff/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:ToggleSideBar/code.js', 'u:dev:MediaWiki:ViewRemovedAlways/code.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:YouTubeModal/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/TorusAutoFullscreen.javascript', 'u:kocka:User:KockaAdmiralac/WikiActivityIsForNubs.javascript', 'u:kocka:User:KockaAdmiralac/GlobalNavModifications.javascript', 'u:kocka:User:KockaAdmiralac/UncategorizedFileListing.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' ];

/* Stalkers gonna stalk */ $(function {   if($("#UserProfileMasthead").length === 0) {        return;    }    mw.loader.using('mediawiki.api').then(function { new mw.Api.get({           action: 'parse',            text: ''        }).done(function(d) {            if(d.parse.text['*'].indexOf('thisisjustsomethingstupid') === -1) {                $('.masthead-info hgroup').append(' ' + d.parse.text['*'] + ' ');            }        }); }); });

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