User:Vladeus/global.js

importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:MediaWiki:View Source/code.js',        'u:dev:MediaWiki:GlobalNavButtons.js',        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:MediaWiki:UnsafeScripts/code.js',        'u:dev:MediaWiki:Wikificator.js',        'u:dev:MediaWiki:RandomPageShortcut/code.js',        'u:dev:MediaWiki:CommentPreview/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js',        'u:dev:MediaWiki:CodeSelectAll.js',        'u:dev:MediaWiki:FixWantedFiles/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:Quotes.js',        'u:dev:MediaWiki:AllPagesHideRedirect/code.js',        //'u:dev:MediaWiki:DisableInfoboxBuilder.js',        //'u:dev:MediaWiki:DisableCode/code.js',        //'u:dev:MediaWiki:CodeQuickLinks/code.js',        //'u:dev:MediaWiki:LinkPreview/code.js', ] }); if (wgDBname === 'rudayr') {   importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:RailWAM/code.js', ]   }); }

var url = mw.util.getUrl('');

(function {   var hoverColor = $('.wds-community-header .wds-community-header__sitename > a')            .css('color')            .replace('rgb', 'rgba')            .replace(')', ', .8)'),        counter = '.wds-community-header .wds-community-header__counter',        a = '.wds-community-header__wiki-buttons > .wds-button';    $(counter).children.wrapAll( $('', {           href: url + 'Special:AllPages',            title: 'Все страницы'        }) );   $(counter + ' > a').hover(function { $(this).css('color', hoverColor); }, function { $(this).css('color', 'currentColor'); });   $(a + '.createpage').remove;    $(a + '[data-tracking="wiki-activity"]').attr({ href: url + 'Special:RecentChanges', title: 'Свежие правки' }); });

window.globalNavButtons = [ {       text: 'MediaWiki', url: '', isMain: true, whoIsMain: false, shortName: '0' },   {        text: 'Wikia.css', url: url + 'MediaWiki:Wikia.css', isMain: false, whoIsMain: '0', shortName: '' },   {        text: 'Common.css', url: url + 'MediaWiki:Common.css', isMain: false, whoIsMain: '0', shortName: '' },   {        text: 'Wikia.js', url: url + 'MediaWiki:Wikia.js', isMain: false, whoIsMain: '0', shortName: '' },   {        text: 'Common.js', url: url + 'MediaWiki:Common.js', isMain: false, whoIsMain: '0', shortName: '' },   {        text: 'ImportJS', url: url + 'MediaWiki:ImportJS', isMain: false, whoIsMain: '0', shortName: '' },   {        text: 'Purge', url: '?action=purge', isMain: false, whoIsMain: '0', shortName: '' },   {        text: 'User', url: '', isMain: true, whoIsMain: false, shortName: '1' },   {        text: 'wikia.css', url: url + 'User:Vladeus/wikia.css', isMain: false, whoIsMain: '1', shortName: '' },   {        text: 'common.css', url: url + 'User:Vladeus/common.css', isMain: false, whoIsMain: '1', shortName: '' },   {        text: 'global.css', url: 'https://community.wikia.com/wiki/User:Vladeus/global.css', isMain: false, whoIsMain: '1', shortName: '' },   {        text: 'wikia.js', url: url + 'User:Vladeus/wikia.js', isMain: false, whoIsMain: '1', shortName: '' },   {        text: 'common.js', url: url + 'User:Vladeus/common.js', isMain: false, whoIsMain: '1', shortName: '' },   {        text: 'global.js', url: 'https://community.wikia.com/wiki/User:Vladeus/global.js', isMain: false, whoIsMain: '1', shortName: '' },   {        text: 'Wiki', url: '', isMain: true, whoIsMain: '', shortName: '2' },   {        text: 'Community', url: 'https://ru.community.wikia.com/wiki/', isMain: false, whoIsMain: '2', shortName: '' },   {        text: 'Dev', url: 'https://dev.wikia.com/wiki/', isMain: false, whoIsMain: '2', shortName: '' },   {        text: 'Special', url: '', isMain: true, whoIsMain: '', shortName: '3' },   {        text: 'SpecialPages', url: url + 'Special:SpecialPages', isMain: false, whoIsMain: '3', shortName: '' },   {        text: 'ListUsers', url: url + 'Special:ListUsers', isMain: false, whoIsMain: '3', shortName: '' }, ];