User:Pirr/global.js

importArticles({   type: 'script',    article: 'u:community:User:Szynka013/global.js' });

$(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); });