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

/* Shorten toolbar */ setTimeout(function {    $( ".WikiaBarWrapper a:contains('PortableCSSPad')" ).text( "PCSSP" );    $( ".WikiaBarWrapper a:contains('My Tools')" ).text( "Tools" ); }, 2000);//End me

/* RCRail */ (function {   if (mw.config.get('wgCanonicalSpecialPageName') !== 'Recentchanges') {        return;    }    var $wrapper = $(' ', { id: 'WikiaRailWrapper', 'class': 'WikiaRail' });   var $rail = $(' ', { id: 'WikiaRail', 'class': 'wikia-rail-inner' });   var $footer = $('#WikiaFooter');

$wrapper.append($rail); $wrapper.insertBefore($footer);

$('body').removeClass('oasis-one-column');

$.nirvana.sendRequest({       controller: 'RailController',        method: 'lazy',        data: {            articleTitle: 'Special:WikiActivity',            namespace: -1,            cb: mw.config.get('wgStyleVersion')        },        type: 'get',        format: 'json',        callback: function(data) {            var loadRailContents = function(data) {                $rail.addClass('loaded').append(data.railLazyContent + data.js);

if (window.ChatWidget && typeof window.wgWikiaChatUsers !== 'undefined') { window.ChatWidget.init; }

if (typeof $.fn.timeago !== 'undefined') { $rail.find('.timeago').timeago; }

if (window.wgEnableLightboxExt) { window.LightboxLoader.init; }

$rail.trigger('afterLoad.rail'); };

if (data.css.length === 0) { loadRailContents(data); } else { require(['wikia.loader'], function(loader) {                   loader({ type: loader.CSS, resources: data.css }).done(function { loadRailContents(data); });               });            }        }    }); });//End RCR

//////////////////////////////////////////////// /*************** Import Configs ***************/ //////////////////////////////////////////////// /* Cache Check */ window.cacheSkip = []; window.cacheSkipLimit = 1000; window.topLevelCat = '';//End CC

/* WHAM! */ WHAMDelay = 1000;

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

/* 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.fandom.com', isMain: true, whoIsMain: false, shortName: 'diep' }, {    text: 'Recent Changes', url: 'https://diepio.fandom.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'diep' }, {    text: 'MediaWiki:Wikia.css', url: 'https://diepio.fandom.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'diep' }, {    text: 'SV', url: 'https://survivio.fandom.com', isMain: true, whoIsMain: false, shortName: 'su' }, {    text: 'Recent Changes', url: 'https://survivio.fandom.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'su' }, {    text: 'MediaWiki:Wikia.css', url: 'https://survivio.fandom.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'su' }, {    text: 'TB', url: 'https://totally-accurate-battle-simulator.fandom.com', isMain: true, whoIsMain: false, shortName: 'tabs' }, {    text: 'Recent Changes', url: 'https://totally-accurate-battle-simulator.fandom.com/wiki/Special:RecentChanges', isMain: false, whoIsMain: 'tabs' }, {    text: 'Testing 1', url: 'https://totally-accurate-battle-simulator.fandom.com/wiki/User:Banarama/Testing', isMain: false, whoIsMain: 'tabs' }, {    text: 'Testing 2', url: 'https://totally-accurate-battle-simulator.fandom.com/wiki/User:Banarama/Testing2', isMain: false, whoIsMain: 'tabs' }, {    text: 'MediaWiki:Wikia.css', url: 'https://totally-accurate-battle-simulator.fandom.com/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: 'tabs' }, {    text: 'User:Banarama/wikia.css', url: 'https://totally-accurate-battle-simulator.fandom.com/wiki/User:Banarama/wikia.css', isMain: false, whoIsMain: 'tabs' }, {    text: '&C', url: '', isMain: true, whoIsMain: false, shortName: 'wikis' }, {    text: 'Community Central', url: 'https://c.fandom.com', isMain: false, whoIsMain: 'wikis' }, {    text: 'Community Council', url: 'https://cc.fandom.com', isMain: false, whoIsMain: 'wikis' }, {    text: 'Banarama Wiki', url: 'https://banarama.fandom.com', isMain: false, whoIsMain: 'wikis' }, {    text: 'Dev Wiki', url: 'https://dev.fandom.com/wiki/User:Banarama', isMain: false, whoIsMain: 'wikis' }, {    text: 'Edit nav', url: 'https://c.fandom.com/wiki/User:Banarama/global.js?action=edit', isMain: false, whoIsMain: 'wikis' } ];//End GNB

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

//////////////////////////////////////////////// /******************* Imports ******************/ //////////////////////////////////////////////// /* Universal Imports */ importArticles({   type: 'script',    articles: [        'u:banarama:ProfileACUP.js',        'u:community:User:DarkBarbarian/preventTheLimbo.js',        'u:dev:AjaxBatchDelete.js',        'u:dev:AjaxBatchUndelete.js',        'u:dev:AjaxRC/code.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:CleanWantedFiles/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: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:MultiUpload/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:RCKey.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' ] });//End UI