User:Сибирский Смотритель/global.js

console.log("global.js: " + 12); /* require(['jquery', 'fosl.wds'], function($, wds) {	if ($('[data-tracking="admin-dashboard"]').length)       $('', { class: 'wds-button wds-is-squished wds-is-secondary', href: '/wiki/MediaWiki:Wiki-navigation?action=edit', title: 'Редактировать навигацию', 'data-tracking': 'edit-nav', }).html( wds.icon('pencil', ['wds-icon', 'wds-icon-small'], 18) )       .insertAfter('[data-tracking="admin-dashboard"]'); });*/

// Some modification for global navigation $(".wds-global-navigation__logo") .html('') .css({   "-webkit-flex": "0 0 100px",    "-ms-flex": "0 0 100px",    "flex": "0 0 100px", }); $("#searchInput.wds-global-navigation__search-input").keydown(function(e) {   if (e.which == 27) {        $(".wds-global-navigation__search-close").trigger("click");        $(this).blur;    } });

importArticles({   type: 'script',    articles: [        'u:dev:Wikimarks/code.js',        'u:dev:ChatHacks.js',        "u:dev:YouShallNotPass/code.js",        "w:c:ru.learnedit:User:Сибирский Смотритель/ChatHacksNotification.javascript"    ] });