User:Banarama/global.js

//////////////////////////////////////////////// /**************** Miscellaneous ***************/ //////////////////////////////////////////////// /* 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 ] };//End AI

//////////////////////////////////////////////// /******************* Imports ******************/ //////////////////////////////////////////////// /* Universal Imports */ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchDelete.js',            'u:dev:MediaWiki:AjaxBatchUndelete.js',            'u:dev:MediaWiki:AjaxUndo/code.js',            'u:dev:MediaWiki:AnalyticsShortcut.js',            'u:dev:MediaWiki:AnchoredRollback/code.js',            'u:dev:MediaWiki:AnnouncementsIgnore.js',            'u:dev:MediaWiki:AutoCreateUserPages.js',            'u:dev:MediaWiki:BlogLink/code.js',            'u:dev:MediaWiki:BotManagement.js',            'u:dev:MediaWiki:CacheCheck/code.js',            //'u:dev:MediaWiki:CategoryRenameAuto-update/code.js',//unknown            //'u:dev:MediaWiki:CleanWantedFiles/code.js',//unknown            'u:dev:MediaWiki:CodeQuickLinks/code.js',            //'u:dev:MediaWiki:ContribsButtons.js',//gotta install CSS for it            'u:dev:MediaWiki:DisableInfoboxBuilder.js',            //'u:dev:MediaWiki:DiscussionsViewer.js',//unknown //'u:dev:MediaWiki:DisplayTimer/code.js',//don't like much in UCX //'u:dev:MediaWiki:EditConflictAlert/code.js',//unknown 'u:dev:MediaWiki:FastCreate.js', //'u:dev:MediaWiki:FileUsageAuto-update/code.js',//unknown //'u:dev:MediaWiki:FindAndReplace/code.js',//unknown 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:MarkBlocked.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:MassRename/code.js', 'u:dev:MediaWiki:MastheadGender/code.js', //'u:dev:MediaWiki:MinimalTemplateClassification.js',//awaiting 'u:dev:MediaWiki:MinimalTestModeAlert.js', //'u:dev:MediaWiki:MobileEditor.js',//awaiting //'u:dev:MediaWiki:MultipleFileDelete/code.js',//do not remove über script 'u:dev:MediaWiki:MultiUpload/code.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:PageCreator/code2.js', 'u:dev:MediaWiki:PageEditInfo/code.js', 'u:dev:MediaWiki:PortableCSSPad/code.js', 'u:dev:MediaWiki:PortableListUsers.js', 'u:dev:MediaWiki:ProtectionIcons.js', 'u:dev:MediaWiki:PurgeButton/code.js', //'u:dev:MediaWiki:RCStats.js',//unknown 'u:dev:MediaWiki:RedirectManagement/code.js', //'u:dev:MediaWiki:ReferencePopups/code.js',//awaiting 'u:dev:MediaWiki:SeeMoreActivityButton/code.js', 'u:dev:MediaWiki:ThemeToggler.js', 'u:dev:MediaWiki:WhatLinksHere/code.js', 'u:dev:MediaWiki:Wikimarks/code.js', 'u:dev:MediaWiki:ShowUserGroups.js' ] });