User:Withersoul 235/global.js

// AjaxRC Configuration window.ajaxSpecialPages = ["Recentchanges", "WikiActivity", "Watchlist", "Log", "Contributions"]; window.ajaxRefresh = 30000; window.AjaxRCRefreshText = 'Auto-refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page'; window.ajaxIndicator = 'https://vignette.wikia.nocookie.net/dev/images/b/ba/Snake_throbber_dark-bg.gif/revision/latest?cb=20140519203615';

// Imports

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AddFileToArticle/code.js',        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:BlogLink/code.js',        'u:dev:MediaWiki:DiscussionsFeed.js',        'u:dev:MediaWiki:DiscussionsRailModule/code.js',        'u:dev:MediaWiki:DedicatedTalkButton.js',        'u:dev:MediaWiki:EditBio/code.js',        'u:dev:MediaWiki:GlobalEditcount/code.js',        'u:dev:LastEdited/code.js',        'u:dev:LightBlock/code.js',        'u:dev:MediaWiki:NewImages.js',        'u:dev:MediaWiki:NotesModule/code.js',        "u:dev:PageCreator/code2.js",        'u:dev:MediaWiki:PageMakerPro/code.js',        'u:dev:MediaWiki:PiniginsUserInfo/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:Quick_Management/code.js',        "u:dev:MediaWiki:QuickModTools/loader.js",        'u:dev:MediaWiki:RailWAM/code.js',        'u:dev:RecentChangesModule/code.js', 'u:dev:MediaWiki:ReplyList/code.js', 'u:dev:MediaWiki:OldFilePages/code.js', 'u:dev:MediaWiki:SearchJS/code.js', 'u:dev:MediaWiki:ShowUserGroups.js', 'u:dev:MediaWiki:SpellCheckModule/code.js', 'u:dev:MediaWiki:UnhideUserMasthead/code.js', "u:dev:UserActivityTab/code.js", "u:dev:UsernameAvailability/code.js", 'u:dev:MediaWiki:VSTFReport.js' ] });

importScriptPage('MediaWiki:CapsFirst/code.js', 'dev'); importScriptPage('MediaWiki:Translator/Translator.js', 'dev');

// Make Visual Editor links load the regular editor instead

if ($.getUrlVar('veaction') == 'edit') location.replace(document.URL.replace('veaction','action')); // CSS/JS links in user dropdown

$('.AccountNavigation .subnav li:first') .before('Common.css', 'Common.js', 'Wikia.js'); // Personalized version of RestoreContribsButton.

/* Temporarily not in use. $(function {   $('.wds-community-header__wiki-buttons').remove; var config = mw.config.get([ 'wgPageName' ]);   $('.wds-community-header__top-container').append( '' + ' ' + ' '+ '<path d="M14.943 13h-3.61v3.61z"/></g> ' + ' Contribute <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" class="wds-icon wds-icon-tiny wds-dropdown__toggle-chevron" id="wds-icons-dropdown-tiny"><path d="M6 9l4-5H2" fill-rule="evenodd"> ' + '<div class="wds-is-not-scrollable wds-dropdown__content">' + '<ul class="wds-list wds-is-linked">' + 'Edit this page</a></li>' + 'Add a Page</a></li>' + 'Add an Video</a></li>' + 'Add an Image</a></li>' + 'Wiki Activity</a></li>' + 'Admin Dashboard</a></li>' + 'Edit wiki CSS</a></li>' + 'Edit wiki JS</a></li>' + '<li><a href="/wiki/MediaWiki:Wikia.js?action=edit" class="sysop-only">Edit Oasis-only JS</a></li>' + '<li><a href="/wiki/MediaWiki:ImportJS?action=edit" class="sysop-only">Import JS addons</a></li>' + '<li><a href="/wiki/MediaWiki:Wiki-navigation?action=edit" class="sysop-only">Edit wiki navigation</a></li>' + '<li><a href="/wiki/' + config.wgPageName + '?action=purge">Reload page</a></li>' + '<li><a href="/wiki/' + config.wgPageName + '?action=watch">Add page to watchlist</a></li>' + '<li><a href="/wiki/' + config.wgPageName + '?action=unwatch">Remove page from watchlist</a></li>' + '</ul>  ');    if(wgUserGroups.indexOf('sysop') > -1 || wgUserGroups.indexOf('staff') > -1 || wgUserGroups.indexOf('helper') > -1) {        return 0;    } else {        $('a.sysop-only').remove;    } });