User:MACH-59330/global.js

$(document).ready(function(nav) {   if (mw.config.get("wgAction") !== "edit" && mw.config.get("wgAction") !== "submit") {        // Top bar        globalnavcolor = setInterval(function(nav){ if ($('.global-navigation-container').length) { $('.global-navigation-container').css('background-color', $('.navbackground').css('background-color')); clearInterval(globalnavcolor); }       },150);        // Bottom box        globalfootercolor = setInterval(function(nav) { if ($('.wds-global-footer').length) { $('.wds-global-footer').css('background-color', $('.navbackground').css('background-color')); $('.wds-global-footer__fandom-section, .wds-global-footer__wikia-section').css('border-top-color', $('.wds-global-footer__bottom-bar').css('background-color')); clearInterval(globalfootercolor); }       },150);    } });