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', ] });

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

$(function {   $('.wds-community-header__counter').children.wrapAll( $('', {           href: url + 'Special:AllPages',            title: 'Все страницы'        }) );   var a = '.wds-community-header__wiki-buttons > .wds-button';    $(a + '.createpage').remove;    $(a + '[href$="WikiActivity"]').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: '' }, ];