User:Pirr/global.js

importStylesheetPage('User:Szynka013/global.css', 'c'); importScriptPage('User:Szynka013/global.js', 'c');

$(function {   var color = window.getComputedStyle(document.querySelector('.WikiaBarWrapper .toolbar .tools > li > a'), null).getPropertyValue('color');    var background = window.getComputedStyle(document.querySelector('.WikiaBarWrapper'), null).getPropertyValue('background-color');    var cgn_wrapper = document.querySelector('.wds-global-navigation-wrapper').style;    cgn_wrapper.setProperty('--cgn-color-background', background);    cgn_wrapper.setProperty('--cgn-color-text', color);    cgn_wrapper.setProperty('--cgn-color-text-secondary', color);    cgn_wrapper.setProperty('--cgn-color-accent', color);    cgn_wrapper.setProperty('--cgn-color-chevron', color); });