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" } };

window.AjaxDelete = { deleteReasons: { "Help:Vandalism": "Vandalism", "Help:Spam": "Spam", "Marked for deletion": "{" + "{delete}}", "Copyright violation": "Copyright violation", "Author request": "Author request", "Housekeeping": "I'm too lazy to find a valid reason lol", ":^)": ":^)"   },    imageDeleteReasons: { "Help:Vandalism": "Vandalism", "Help:Spam": "Spam", "Marked for deletion": "{" + "{delete}}", "Unused": "Unused", "Bad quality": "Quality", "Duplicated/superseded file": "Duplicate", "Fanmade content": "Fanmade content", "Unrelated to the wiki topic": "Not Undertale", "Housekeeping": "I'm too lazy to find a valid reason lol", },   autoCheckWatch: false };

var regularList = [ 'u:admintools:MediaWiki:Common.js/Maintenance.js', 'u:dev:MediaWiki:AjaxDelete/code.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:UncategorizedFileListing/code.js', // Personal sandbox scripts 'u:kocka:User:KockaAdmiralac/AutoWideCodeeditor.javascript', 'u:kocka:User:KockaAdmiralac/EmptyDeleteReason.javascript', 'u:kocka:User:KockaAdmiralac/MastheadGender.javascript', 'u:kocka:User:KockaAdmiralac/TorusAutoFullscreen.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' ];

$(function {   // Clean up my title    var a = document.title.split(" | ");    a.pop;    a.pop;    document.title = a.join; });

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