User:Оррин/global.js

importArticles({   type: 'script',    articles: [        'u:dev:ModernProfile/EditButton.js',        'u:dev:Rollback/code.js',    ] });

//Викификатор function addWikifButton { var toolbar = document.getElementById('toolbar') if (!toolbar) return var i = document.createElement('img') i.src = '//upload.wikimedia.org/wikisource/ru/d/d1/Button-wikifikator.png' i.alt = i.title = 'викификатор' i.onclick = Wikify i.style.cursor = 'pointer' toolbar.appendChild(i) } if ((wgAction == 'edit' || wgAction == 'submit') && typeof Wikify === 'undefined') { importScriptPage('MediaWiki:Wikificator.js', 'ru.pern'); addOnloadHook(addWikifButton) }

$(function { var cgn_color = window.getComputedStyle(document.querySelector('.wds-community-header__sitename a'), null).getPropertyValue('color');  var cgn_background = window.getComputedStyle(document.querySelector('.wds-community-header'), null).getPropertyValue('background-color');  var cgn_wrapper = document.querySelector('.wds-global-navigation-wrapper').style;  cgn_wrapper.setProperty('--cgn-color-background', cgn_background);  cgn_wrapper.setProperty('--cgn-color-text', cgn_color);  cgn_wrapper.setProperty('--cgn-color-text-secondary', cgn_color);  cgn_wrapper.setProperty('--cgn-color-accent', cgn_color);  cgn_wrapper.setProperty('--cgn-color-chevron', cgn_color); });