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 evil United Nations for the Analytics page */ $(".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('Korea, 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: { 'Innapropiate': 'Innapropiate', '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: 'rc1' }, {    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: 'CR', url: 'https://clashroyale.wikia.com', isMain: true, whoIsMain: false, shortName: 'cr' }, {    text: 'Recent Changes', url: 'https://clashroyale.wikia.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'cr', shortName: 'rc2' }, {    text: 'Card Overviews', url: 'https://clashroyale.wikia.com/wiki/Card Overviews', isMain: false, whoIsMain: 'cr', shortName: 'cards' }, {    text: 'MediaWiki:Wikia.css', url: 'https://clashroyale.wikia.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'cr', shortName: 'crcss' }, {    text: 'BS', url: 'https://brawlstars.wikia.com', isMain: true, whoIsMain: false, shortName: 'bs' }, {    text: 'Recent Changes', url: 'https://brawlstars.wikia.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'bs', shortName: 'rc5' }, {    text: 'MediaWiki:Wikia.css', url: 'https://brawlstars.wikia.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'bs', shortName: 'bscss' }, {    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: 'Template:Weapon', url: 'https://survivio.wikia.com/wiki/Template:Weapon', isMain: false, whoIsMain: 'su', shortName: 'tw' }, {    text: 'MediaWiki:Wikia.css', url: 'https://survivio.wikia.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'su', shortName: 'sucss' }, {    text: 'DV', url: 'https://dev.wikia.com', isMain: true, whoIsMain: false, shortName: 'dev' }, {    text: 'Recent Changes', url: 'https://dev.wikia.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'dev', shortName: 'rc3' }, {    text: 'BlendGlobalNav', url: 'https://dev.wikia.com/wiki/MediaWiki:BlendGlobalNav.css', isMain: false, whoIsMain: 'dev', shortName: 'bgn' }, {    text: 'BlendGlobalFooter', url: 'https://dev.wikia.com/wiki/MediaWiki:BlendGlobalFooter.css', isMain: false, whoIsMain: 'dev', shortName: 'bgf' }, {    text: 'CSS Imports', url: 'https://c.wikia.com/User:Banarama/global.css', isMain: false, whoIsMain: 'dev', shortName: 'pcss' }, {    text: 'JS Imports', url: 'https://c.wikia.com/User:Banarama/global.js', isMain: false, whoIsMain: 'dev', shortName: 'pjs' }, {    text: '&C', url: '', isMain: true, whoIsMain: false, shortName: 'wikis' }, {    text: 'Community Council', 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: 'Mope.io Wiki', url: 'https://mopeio.wikia.com/Special:RecentChanges', isMain: false, whoIsMain: 'wikis', shortName: 'mope' }, {    text: 'TABS Wiki', url: 'https://totally-accurate-battle-simulator.wikia.com/Special:RecentChanges', isMain: false, whoIsMain: 'wikis', shortName: 'tabs' }, {    text: 'SFU-Sniperman Sanctuary', url: 'https://the-dreaded-laboratory.wikia.com/Special:WikiActivity',//Ditto 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:community:User:Ursuul/AnalyticsToolbar.js',        '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:Message/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:RCLink.js', 'u:dev:RCStats.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:SkinSwitchButton/code.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*/