User:MetroKaiser/global.js

//1. Imports importArticles({   type: "script",    articles: [        'u:dev:MediaWiki:FollowDropdown/code.js',        'u:dev:MediaWiki:WallGreetingButton/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js',        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:SmoothGlobalNav/code.js',        'u:dev:MediaWiki:Rollback/code.js',    ] });

//2. WAM window.railWAM = { logPage: 'Участник:MetroKaiser/WAM log', loadOnPage: 'Служебная:WikiActivity', lang: 'ru', }; importArticles({   type: 'script',    articles: [        // ...        'u:dev:MediaWiki:RailWAM/code.js'    ] });

//3. Favorite wikies in the navigation var spanWiki = document.querySelector('.wds-dropdown__toggle span'); spanWiki.innerHTML = 'Вики'; window.gnWikiLinks = ['//ru.wikies.wikia.com|Викии Вики', '//rainbowsix.fandom.com|Rainbow Six Wiki', '//rainbowsix.fandom.com/ru|Rainbow Six Вики']; $(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)); }); });

//4. Discussion bell (function {	$('#wds-icons-bell defs path').attr('d', 'M21.882 19.472a.998.998 0 0 0-.05-1.026C21.814 18.418 20 15.656 20 12V8c0-4.411-3.59-8-8-8-4.411 0-8 3.589-8 8v4c0 3.628-1.815 6.419-1.832 6.446a1.003 1.003 0 0 0-.05 1.026c.175.325.514.528.882.528h18a1 1 0 0 0 .882-.528M12 24c1.474 0 2.75-.81 3.444-2H8.556c.694 1.19 1.97 2 3.444 2'); });