User:Banarama/global.js

/////////////////////////////////////////////////////////////////////////// /*************************************************************************/ /***************************** Miscellaneous *****************************/ /*************************************************************************/ /////////////////////////////////////////////////////////////////////////// /* Rail Priority */ $(function {   mw.hook('DiscordIntegrator.added').add(function { $('.DiscordIntegratorModule').appendTo('#WikiaRail'); }); });//End RP*/ /* Stop Signature Check */ if (window.WikiaEditor && window.GlobalTriggers) { window.GlobalTriggers.bind('WikiaEditorReady', function callback {       window.GlobalTriggers.unbind('WikiaEditorReady', callback);        window.setTimeout(function { $('#wpSave').closest('form').off('submit.CheckSignature'); }, 0);   }); }//End SSC*/

/* Fix idiotic country names chosen by the evil globalists at the United Nations in Special:Analytics */ $(".analytics_table").each(function {   $(this).html($(this).html .replace('Brunei Darussalam',                                           'Brunei') .replace('Bolivia (Plurinational State of)',                           'Bolivia') .replace('Côte d\'Ivoire',                                         'Ivory Coast') .replace('Falkland Islands (Malvinas)',                       'Falkland Islands') .replace('Iran (Islamic Republic of)',                                    'Iran') .replace('Korea (Democratic People\'s Republic of)',                'Best Korea') .replace('Koream, Republic of',                                     'South Korea') .replace('Lao People\'s Democratic Republic',                             'Laos') .replace('Moldova, Republic of',                                       'Moldova') .replace('Russian Federation',                                          'Russia') .replace('Syrian Arab Republic',                                         'Syria') .replace('Tanzania, United Republic of',                              'Tanzania') .replace('Taiwan, Province of China',                                   'Taiwan') .replace('United Kingdom of Great Britain and Northern Ireland', 'United Kingdom') .replace('United States of America',                             'United States') .replace('Venezuela (Bolivarian Republic of)',                       'Venezuela') .replace('Viet Nam',                                                   'Vietnam')); });//End Common Sense*/ /////////////////////////////////////////////////////////////////////////// /*************************************************************************/ /************************* Import Configurations *************************/ /*************************************************************************/ /////////////////////////////////////////////////////////////////////////// /* Ajax Delete */ window.AjaxDelete = { deleteReasons: { 'Housekeeping': 'Housekeeping', 'Marked for deletion': 'Marked for deletion', 'Author request': 'Author request', 'Empty page': 'Empty', 'Irrelevant to Diep.io': 'Irrelevant', 'Broken Redirect': 'Broken Redirect', 'Help:Vandalism': 'Vandalism', 'Help:Spam': 'Spam', 'Other': 'Other' },   imageDeleteReasons: { 'Inappropiate': 'Inappropiate', 'Harassment': 'Harassment', 'Housekeeping/Unused': 'Housekeeping', 'Copyright infringement': 'Copyright', 'Author request': 'Author request', 'Refuse Image': 'Refuse Image' },   autoCheckWatch: true, noUndelete: false };//End AD*/ /* Back to Top Button * window.BackToTopSpeed = 1500; window.BackToTopStart = 400;//End BtTB*/ /* Talk Notifications */ window.talkWikis = ['diepio']; //window.talkName = 'Talk';//End TN*/ /* Cache Check */ window.cacheSkip = []; window.cacheSkipLimit = 1000; window.topLevelCat = '';//End CC*/ /* Skin Switch */ window.mobileText = "Switch to Mercury";//End SS*/ /* Mass Effect Configs */ batchDeleteDelay = 250; nukeDeleteReason = "Cleanup (Nuke Script)"; massRenameDelay = 500; massRenameSummary = 'Automatic Process'; massRedirectDelay = 500; massBlockDelay = 500; WHAMDelay = 1000; //End MEC*/

/* AjaxRC */ window.ajaxSpecialPages = ["Recentchanges", "WikiActivity", "Watchlist", "Log", "Contributions"]; window.ajaxIndicator = 'http://slot1.images.wikia.nocookie.net/__cb1468579810/common/skins/common/images/ajax.gif'; window.ajaxRefresh = 30000; window.AjaxRCRefreshText = 'Auto refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page';

/* WHAM! */ WHAMDelay = 1000

/* MultipleFileDelete */ window.mfdExclude = [ 'Allpages' ];

/* RailWAM */ window.railWAM = { logPage: 'Project:WAM Log', loadOnPage: 'Special:WikiActivity', };

/* GlobalNavButtons */ var globalNavButtons = [ {   text: 'RC', url: 'https://community.fandom.com/wiki/User:Banarama/RC', isMain: false, whoIsMain: false, shortName: 'mrc' }, {    text: 'DW', url: 'https://diepio.wikia.com', isMain: true, whoIsMain: false, shortName: 'diep' }, {    text: 'Recent Changes', url: 'https://diepio.wikia.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'diep', shortName: 'dieprc' }, {    text: 'MediaWiki:Wikia.css', url: 'https://diepio.wikia.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'diep', shortName: 'css1' }, {    text: 'MediaWiki:Themes.css', url: 'https://diepio.wikia.com/wiki/MediaWiki:Themes.css', isMain: false, whoIsMain: 'diep', shortName: 'css2' }, {    text: 'Gadgets CSS', url: 'https://diepio.wikia.com/index.php?title=Special%3APrefixIndex&prefix=Gadget-&namespace=8', isMain: false, whoIsMain: 'diep', shortName: 'css3' }, {    text: 'SV', url: 'https://survivio.wikia.com', isMain: true, whoIsMain: false, shortName: 'su' }, {    text: 'Recent Changes', url: 'https://survivio.wikia.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'su', shortName: 'rc4' }, {    text: 'MediaWiki:Wikia.css', url: 'https://survivio.wikia.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'su', shortName: 'sucss' }, {    text: 'TB', url: 'https://totally-accurate-battle-simulator.wikia.com', isMain: true, whoIsMain: false, shortName: 'tabs' }, {    text: 'Recent Changes', url: 'https://totally-accurate-battle-simulator.wikia.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'tabs', shortName: 'tabsrc' }, {    text: 'Testing 1', url: 'https://totally-accurate-battle-simulator.wikia.com/wiki/User:Banarama/Testing', isMain: false, whoIsMain: 'tabs', shortName: 'tabs1' }, {    text: 'Testing 2', url: 'https://totally-accurate-battle-simulator.wikia.com/wiki/User:Banarama/Testing2', isMain: false, whoIsMain: 'tabs', shortName: 'tabs2' }, {    text: 'MediaWiki:Wikia.css', url: 'https://totally-accurate-battle-simulator.wikia.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'tabs', shortName: 'tabs3' }, {    text: '&C', url: '', isMain: true, whoIsMain: false, shortName: 'wikis' }, {    text: 'Community Central', url: 'https://c.wikia.com', isMain: false, whoIsMain: 'wikis', shortName: 'c' }, {   text: 'Community Council', url: 'https://cc.wikia.com', isMain: false, whoIsMain: 'wikis', shortName: 'cc' }, {    text: 'Clash Royale Wiki', url: 'https://clashroyale.wikia.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'wikis', shortName: 'cr' }, {    text: 'Brawl Stars Wiki', url: 'https://brawlstars.wikia.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'wikis', shortName: 'bs' }, {    text: 'Mope.io Wiki', url: 'https://mopeio.wikia.com/Special:RecentChanges', isMain: false, whoIsMain: 'wikis', shortName: 'mope' }, {    text: 'Dev Wiki', url: 'https://dev.wikia.com/Special:RecentChanges', isMain: false, whoIsMain: 'wikis', shortName: 'tabs' }, {    text: 'SFU', url: 'https://the-dreaded-laboratory.wikia.com/Special:RecentChanges', isMain: false, whoIsMain: 'wikis', shortName: 'tdl' } ];

/* AnnouncementsIgnore */ window.announcementsIgnore = { option: 'opt-in-all', exceptWikiIds: [ 143359,//Big Nate 253983//Minecraft CreepyPasta ] };

//////////////////////////////////////////////// /******************* Imports ******************/ //////////////////////////////////////////////// /* Universal Imports */ importArticles({   type: 'script',    articles: [        'u:dev:AjaxBatchDelete.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AnalyticsShortcut.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:AnnouncementsIgnore.js',        'u:dev:BlogLink/code.js',        'u:dev:BotManagement.js',        'u:dev:CacheCheck/code.js',        'u:dev:CategoryRenameAuto-update/code.js',        'u:dev:CodeEditor.js',        'u:dev:CodeQuickLinks/code.js',        'u:dev:ContribsButtons.js',        'u:dev:DisableInfoboxBuilder.js',        'u:dev:DiscussionsViewer.js',        'u:dev:DisplayTimer/code.js',        'u:dev:EditConflictAlert/code.js',        'u:dev:FastCreate.js',        'u:dev:FileLogs.js',        'u:dev:FileUsageAuto-update/code.js',        'u:dev:FindAndReplace/code.js',        'u:dev:FixJSRTLang.js',        'u:dev:GlobalChatJS.js',        'u:dev:GlobalNavButtons.js',        'u:dev:LastEdited/code.js', 'u:dev:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/code.js', 'u:dev:MarkBlocked.js', 'u:dev:MassCategorization/code.js', 'u:dev:MassEdit/code.js', 'u:dev:MassNullEdit/code.js', 'u:dev:MassProtect/code.js', 'u:dev:MassRename/code.js', 'u:dev:MinimalTemplateClassification.js', 'u:dev:MinimalTestModeAlert.js', 'u:dev:MobileEditor.js', 'u:dev:MultipleFileDelete/code.js', 'u:dev:NullEditButton/code.js', 'u:dev:PageCreator/code2.js', 'u:dev:PageEditInfo/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:PortableListUsers.js', 'u:dev:ProtectionIcons.js', 'u:dev:RailWAM/code.js', 'u:dev:RCLink.js', 'u:dev:RCStats.js', 'u:dev:RecentChangesMultiple/code.2.js', 'u:dev:RedirectManagement/code.js', 'u:dev:ReferencePopups/code.js', 'u:dev:SearchSuggest/code.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:ShowUserGroups.js', 'u:dev:Thread Inspection/code.js', 'u:dev:UnsafeScripts/code.js', //'u:dev:View Source/code.js', 'u:dev:VSTFReport.js', 'u:dev:WHAM/code.2.js', 'u:dev:WLHEditLinks/code.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:Wikimarks/code.js', 'u:dev:WorkingMoreUsersCount.js', 'u:elderscrolls:Common.js/DiscussionsLinks.js', 'u:kocka:User:KockaAdmiralac/AutoCreateUserPages.javascript' ] });//End UI*/ /* Wiki-specific imports */ if ('65099' === config.wgCityId) {   importArticle({ type: 'style', article: 'u:dev:MediaWiki:FANSUN.css' }); } if (['193260', '65099'].indexOf(config.wgCityId) !== -1) {   importArticle({ type: 'script', article: 'u:dev:FANSUN.js' }); }//End WSI*/