User:DeXart/global.js

importScriptURI('https://internal-vstf.wikia.com/index.php?title=User:DeXart/scripts.js&action=raw&ctype=text/javascript');

// Buttons (function {   var links = {        'VSTF': 'https://vstf.wikia.com/',        'Administracja': mw.util.getUrl('Special:ListUsers/sysop'),        'Obrazy': mw.util.getUrl('Special:Images')    };    $.each(links, function(k, v) { $(' ', {           'class': 'wds-global-navigation__links'        }).append(            $('', { 'class': 'wds-global-navigation__link', href: v,               target: '_blank', text: k           })        ).insertBefore('.wds-global-navigation__search'); }); });

// RC instead of WA under the icon in new nav // Author: Nanaki $('.wds-community-header__wiki-buttons a[data-tracking="wiki-activity"]').attr({   href: mw.util.getUrl('Special:RecentChanges'),    title: 'Ostatnie zmiany',    'data-tracking': 'recent-changes' });

// AjaxRC window.ajaxSpecialPages = [ 'Newwikis', 'Recentchanges', 'Log', 'Images' ]; window.ajaxRefresh = 1000;

// Shortcut keys wgWikiaShortcutKeys['page:Edit'] = ['g m']; wgWikiaShortcutKeys['page:History'] = ['h i s t o r i a'];

// FastDelete var fdButtons = [{ summary: 'vandalism', label: 'V'   }, { summary: 'spam', label: 'S'   }, { summary: 'cleanup', label: 'C↑' }, {       summary: 'Violation of the ToU', label: 'ToU' }, {       summary: 'housekeeping', label: 'H'   } ];

// Importing scripts importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchDelete/code.js',        'u:dev:MediaWiki:AjaxBatchUndelete/code.js',        'u:dev:MediaWiki:AjaxRedirect/code.js',        'u:dev:MediaWiki:AjaxRename/code.js',        'u:dev:MediaWiki:AjaxThreadDelete/code.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:DisableAccessKeys.js',        'u:dev:MediaWiki:DisableCode/code.js',        'u:dev:MediaWiki:FastDelete/code.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:MassProtect/code.js',        'u:dev:MediaWiki:MultiUpload/code.js',        'u:dev:MediaWiki:NullEditButton/code.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:WHAM/code.2.js'    ] }); $(".wds-global-navigation__links").remove