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 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: '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: 'CC', url: 'https://c.wikia.com/Board:Technical_Updates', isMain: false, whoIsMain: false, shortName: 'c' }, {   text: '&C', url: '', isMain: true, whoIsMain: false, shortName: 'wikis' }, {    text: 'Community Council', url: 'https://cc.wikia.com', isMain: false, whoIsMain: 'wikis', shortName: 'cc' }, {    text: 'Mope.io Wiki', url: 'https://mopeio.wikia.com/Special:WikiActivity',//I use S:WA exclusively there because no one is smart enough to fix templates or CSS so everything shows up in S:WA isMain: false, whoIsMain: 'wikis', shortName: 'mope' }, {    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,       253983    ] };

/////////////////////////////////////////////////////////////////////////// /*************************************************************************/ /******************************** Imports ********************************/ /*************************************************************************/ /////////////////////////////////////////////////////////////////////////// /* If Admin */ if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { importArticles({       type: 'script',        articles: [            'u:dev:MediaWiki:!kick/code.js',            'u:dev:MassCategorization/code.js',            'u:dev:MassRedirect/code.1.js',            'u:dev:MassProtect/code.js',            'u:dev:MassRename/code.js',            'u:dev:MassEdit/code.js',            'u:dev:AnchoredRollback/code.js',            'u:dev:MassUserRights/code.js',            'u:dev:MassBlock/code.js',            'u:dev:MassRenameRevert/code.js',            'u:dev:MultipleFileDelete/code.js',            'u:dev:AutoEditPages/code.js',            'u:dev:RedirectManagement/code.js',            'u:dev:Nuke/code.js',            'u:dev:AjaxBatchDelete/code.js',            'u:dev:LastEdited/code.js',            'u:dev:PageRenameAuto-update/code.js',            //'u:dev:AjaxDelete/code.js'        ]    }); }//End IA*/ /* If Content Mod */ if (mw.config.get("wgUserGroups").indexOf('content-moderator') > -1) { importArticles({       type: 'script',        articles: [            'u:dev:MassCategorization/code.js',            'u:dev:MassRedirect/code.1.js',            'u:dev:MassProtect/code.js',            'u:dev:MassRename/code.js',            'u:dev:MassEdit/code.js',            'u:dev:AnchoredRollback/code.js',            'u:dev:MassRenameRevert/code.js',            'u:dev:MultipleFileDelete/code.js',            'u:dev:AutoEditPages/code.js',            'u:dev:RedirectManagement/code.js',            'u:dev:Nuke/code.js',            'u:dev:AjaxBatchDelete/code.js',            'u:dev:LastEdited/code.js',            'u:dev:PageRenameAuto-update/code.js',            'u:dev:AjaxDelete/code.js',        ]    }); }//End IfConMod*/ /* If Rollback */ if (mw.config.get("wgUserGroups").indexOf('rollback') > -1) { importArticles({       type: 'script',        articles: [            'u:dev:MassCategorization/code.js',            'u:dev:LastEdited/code.js',            'u:dev:AnchoredRollback/code.js'        ]    }); }//End IR*/ /* If Disc Mod */ if (mw.config.get("wgUserGroups").indexOf('threadmoderator') > -1) { importArticles({       type: 'script',        articles: [            'u:dev:LastEdited/code.js'        ]    }); }//End IDM*/ /* If Chat Mod */ if (mw.config.get("wgUserGroups").indexOf('chatmoderator') > -1) { importArticles({       type: 'script',        articles: [            'u:dev:LastEdited/code.js',            'u:dev:!kick/code.js',        ]    }); }//End ICM*/ /* Universal Imports */ importArticles({   type: 'script',    articles: [        'u:dev:AjaxDiff/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:AjaxRedirect/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AllPagesHideRedirect/code.js',        'u:dev:MediaWiki:AnnouncementsIgnore.js',        'u:dev:AntiSoundcloud/code.js',        'u:dev:AutoEditDropdown/code.js',        'u:dev:BlankBlogBugfix/code.js',        'u:dev:BlogLink/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:CodeQuickLinks/code.js',        'u:dev:DisableCode/code.js',        'u:dev:DiscussionsFeed.js',        'u:dev:EditBio/code.js',        'u:dev:MediaWiki:FANSUN.js',        'u:dev:FindAndReplace/code.js',        'u:dev:Flags/code.js',        'u:dev:GlobalChatJS.js',        'u:dev:MediaWiki:GlobalNavButtons.js',        'u:dev:MarkBlocked.js',        'u:dev:MassNullEdit/code.js',        'u:dev:NullEditButton/code.js',        'u:dev:PortableCSSPad/code.js', 'u:dev:RTCL.js', 'u:dev:RailWAM/code.js', 'u:dev:MediaWiki:RCKey.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:ReferencePopups/code.js', 'u:dev:RevealAnonIP/usercode.js', 'u:dev:SearchSuggest/code.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:ShowUserGroups.js', 'u:dev:SkinSwitchButton/code.js', 'u:dev:ToggleDebugMode/code.js', 'u:dev:UnhideUserMasthead/code.js', 'u:dev:UnsafeScripts/code.js', 'u:dev:UserAccountAge/code.js', 'u:dev:UserActivityTab/code.js', 'u:dev:UserCheck/code.js', 'u:dev:UsernameAvailability/code.js', 'u:dev:UserRightsRecord/code.js', 'u:dev:UserTalkNotifications/code.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:MediaWiki:Wikimarks/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:WorkingMoreUsersCount.js', 'u:diepio:BackToThread/code.js', 'u:diepio:Miscellaneous/code.js', 'u:kocka:VSTFReport/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:YouTubeModal/code.js', "u:dev:JWB/code.js", 'u:dev:Message/code.js', //'u:dev:GlobalChatJS.js', //'u:dev:MarkForDeletion/code.js', //'u:dev:ToggleSideBar/code.js' ] });//End UI*/