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:banarama:MediaWiki:ProfileACUP.js',        'u:community:MediaWiki:User:DarkBarbarian/preventTheLimbo.js',        'u:dev:MediaWiki:AjaxBatchDelete.js',        'u:dev:MediaWiki:AjaxBatchUndelete.js',        'u:dev:MediaWiki:AjaxRC/code.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:BlogLink/code.js',        'u:dev:MediaWiki:BotManagement.js',        'u:dev:MediaWiki:CacheCheck/code.js',        'u:dev:MediaWiki:CategoryRenameAuto-update/code.js',        'u:dev:MediaWiki:CleanWantedFiles/code.js',        'u:dev:MediaWiki:CodeEditor.js',        'u:dev:MediaWiki:CodeQuickLinks/code.js',        'u:dev:MediaWiki:ContribsButtons.js',        'u:dev:MediaWiki:DisableInfoboxBuilder.js', 'u:dev:MediaWiki:DiscussionsViewer.js', 'u:dev:MediaWiki:EditBio/code.js', 'u:dev:MediaWiki:EditConflictAlert/code.js', 'u:dev:MediaWiki:FastCreate.js', 'u:dev:MediaWiki:FileLogs.js', 'u:dev:MediaWiki:FileUsageAuto-update/code.js', 'u:dev:MediaWiki:FindAndReplace/code.js', 'u:dev:MediaWiki:FixJSRTLang.js', 'u:dev:MediaWiki:GlobalChatJS.js', 'u:dev:MediaWiki:GlobalNavButtons.js', 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/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:MinimalTemplateClassification.js', 'u:dev:MediaWiki:MinimalTestModeAlert.js', 'u:dev:MediaWiki:MobileEditor.js', 'u:dev:MediaWiki:MultipleFileDelete/code.js', 'u:dev:MediaWiki:MultiUpload/code.js', 'u:dev:MediaWiki:NullEditButton/code.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:RailWAM/code.js', 'u:dev:MediaWiki:RCKey.js', 'u:dev:MediaWiki:RCLink.js', 'u:dev:MediaWiki:RCStats.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:ReferencePopups/code.js', 'u:dev:MediaWiki:SearchSuggest/code.js', 'u:dev:MediaWiki:SeeMoreActivityButton/code.js', 'u:dev:MediaWiki:ShowUserGroups.js', 'u:dev:MediaWiki:Thread Inspection/code.js', 'u:dev:MediaWiki:UnsafeScripts/code.js', //'u:dev:MediaWiki:View Source/code.js', 'u:dev:MediaWiki:VSTFReport.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:WLHEditLinks/code.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:Wikimarks/code.js', 'u:dev:MediaWiki:WorkingMoreUsersCount.js', 'u:elderscrolls:MediaWiki:Common.js/DiscussionsLinks.js' ] });