User:Pirr/global.js

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

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