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", "Prefs": "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", "Index": "Special:PrefixIndex" },   community: { "RC": "Special:RecentChanges", "AL": "Special:AbuseLog", "NW": "Special:Newwikis", "Images": "Special:BlankPage/UncategorizedFileListing", "JS": "Special:Mypage/global.js", "CSS": "Special:Mypage/global.css", "Forum": "Special:Forum", "Updates": "Blog:Wikia Technical Updates", "Help": "Special:RandomInCategory/Help", },   undertale: { "AL": "Special:AbuseLog" } };

window.AjaxBlock = { blockReasons: { "Vandalism": "Vandalism", "Spam": "Spam", "Terms of Use violation": "ToU", "Abusing multiple accounts": "Sock", "Intimidating behaviour/harassment": "Harassment", "Unacceptable username": "Username", "Creating unnecessary pages": "Pages", "Flooding comments/threads": "Flood", "Uploading unnecessary images": "Images", ":^)": ":^)"   } };

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", "Unused": "Unused", ":^)": ":^)"   },    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:AjaxRC/code.js', 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:MediaWiki:AnchoredRollback/code.js', 'u:dev:MediaWiki:CacheCheck/code.js', 'u:dev:MediaWiki:DiscussionsFeed.js', 'u:dev:MediaWiki:GlobalEditcount/code.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:NullEditButton/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:AjaxBlock/code.js', 'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', 'u:dev:MediaWiki:AjaxDelete/code.js', 'u:dev:MediaWiki:AjaxPatrol/code.js', 'u:dev:MediaWiki:FastOldImageDelete/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 {   // Move the toggle button    var togglemove = setInterval(function { if($("#ToggleSideBarButton").length > 0) { clearInterval(togglemove); $("#ToggleSideBarButton").insertAfter(".header-tally .tally"); }   }, 100);    // Clean up my title    var a = document.title.split(" | ");    a.pop;    a.pop;    document.title = a.join;    // Don't go to edit pages from redlinks    a = $('a[href$="?action=edit&redlink=1"]');    if(a.attr('href')) {        a.attr('href', a.attr('href').replace('?action=edit&redlink=1', ''));    } });

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