User:Kofirs2634/global.js

// WAM Settings window.railWAM = { lang: 'ru' };

// Some imports importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:RailWAM/code.js',        'u:dev:MediaWiki:GlobalEditcount/code.js',        'u:dev:MediaWiki:AjaxDiff/code.js',        'u:dev:MediaWiki:EditBio/code.js'    ] });

// MultiUpload importScriptPage('MultiUpload/code.js', 'dev'); var MultiUploadoption = { max: 100 };

// From Dev Wiki "Sandbox Link" with my additional buttons (function {   if (window.SandboxLinkLoaded) {        return;    }    window.SandboxLinkLoaded = true;    importArticle({ type: 'script', article: 'u:dev:MediaWiki:I18n-js/code.js' });   mw.hook('dev.i18n').add(function(i18no) { $.when(           i18no.loadMessages('SandboxLink'),            mw.loader.using('mediawiki.util')        ).then(function(i18n) {            var conf = mw.config.get([ 'wgFormattedNamespaces', 'wgUserName' ]);           $('.wds-global-navigation__user-menu .wds-list').append( $('', {                   id: 'MySandbox'                }).append(                    $('', { 'class': 'wds-global-navigation__dropdown-link', href: mw.util.getUrl(conf.wgFormattedNamespaces[2] + ':' + conf.wgUserName + '/' + i18n.inContentLang.msg('sandbox-subpage').plain), text: i18n.msg('sandbox').plain })               )            );            $('.wds-global-navigation__user-menu .wds-list').append( $('', {                   id: 'MyCSS'                }).append(                    $('', { 'class': 'wds-global-navigation__dropdown-link', href: mw.util.getUrl(conf.wgFormattedNamespaces[2] + ':' + conf.wgUserName + '/wikia.css'), text: 'Мой CSS' })               )            );            $('.wds-global-navigation__user-menu .wds-list').append( $('', {                   id: 'MyCSS'                }).append(                    $('', { 'class': 'wds-global-navigation__dropdown-link', href: mw.util.getUrl(conf.wgFormattedNamespaces[2] + ':' + conf.wgUserName + '/common.js'), text: 'Мой JS' })               )            );        });    }); });