User:Rusy233 ms/global.js

/* Импорты */ var qtUserPageTemplate = ''; importArticles({   type: 'script',    articles: [        'u:dev:QuickCreateUserPage/code.js',        'u:dev:MediaWiki:SnowStorm.js',        'u:dev:AjaxRC/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:UserActivityTab/code.js',        'u:dev:MediaWiki:WhatLinksHere/code.js'    ] });

/* Кнопки в нав. меню */ window.gnWikiLinks = ['http://ru.luntik.wikia.com|Лунтик Wiki', 'http://ru.luntikfanon.wikia.com|Лунтик Фанон Wiki', 'http://ru.wikies.wikia.com|Викии Вики']; $(function {    var $menu = $('.wds-global-navigation__link-group .wds-list'),        links = window.gnWikiLinks || [];    if (!$menu.length || !links.length) return;    links.forEach(function (v) { var link = v.replace(/\[|\]/g, ''), $a = $('', {               href: (/(.*?)\||$/.exec(link) || {})[1] || link,                text: (/\|(.*)/.exec(link) || {})[1] || link,                title: link            }); $menu.prepend($('').append($a)); }); });

/* Кнопки в редакторе */ if ( mwCustomEditButtons ) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Перенаправление", "tagOpen": "#перенаправление ",		"tagClose": "", "sampleText": "Введите текст" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c9/Button_strike.png", "speedTip": "Зачеркнуть", "tagOpen": " ", "tagClose": " ", "sampleText": "Введите текст" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", "speedTip": "На другую строку", "tagOpen": " ", "tagClose": "", "sampleText": "" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Комментарий виден только для редакторов", "tagOpen": "", "sampleText": "Введите свой комментарий" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/wikia/images/c/ca/Button_code_(Rusy233_ms).png/revision/latest?cb=20180330183021&path-prefix=ru", "speedTip": "Код", "tagOpen": " ", "sampleText": "Введите текст" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/sy233-ms/images/c/c2/Кавычки.png/revision/latest?cb=20180704114832&path-prefix=ru", "speedTip": "Кавычки", "tagOpen": "«", "tagClose": "»", "sampleText": "Введите текст" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/sy233-ms/images/5/56/Дефис.png/revision/latest?cb=20180704115844&path-prefix=ru", "speedTip": "Дефис", "tagOpen": "—" }; }