User:MACH-59330/global.js

// global imports importArticles({   type: 'script',    articles: [        'u:dev:SkinSwitchButton/code.js',        'u:dev:DiscussionsFeed.js'    ] });

// global header recolor, by Slyst and Jr Mime globalnavcolor = setInterval(function {   if ($('.wds-global-navigation').length) {        $('.wds-global-navigation').css('background-color', $('.navbackground').css('background-color'));        clearInterval(globalnavcolor);    } }, 150);

// global footer recolor, by Slyst and Jr Mime globalfootercolor = setInterval(function {   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);

// source editor recolor editorcolor = setInterval(function {   if ($('.skin-oasis.editor').length) {        var editbtn = $('#wpSave').css('background-color');        $('.wds-global-navigation,.EditPageHeader').css('background-color', editbtn);        $('.WikiaPage').css('border-color', editbtn);        clearInterval(editorcolor);    } }, 150);

// dark theme deluminator $(function {   $('.skin-oasis.oasis-dark-theme').prevAll("#deluminate_fullscreen_workaround").addClass("inverted");    $('.skin-monobook.page-dark').prevAll("#deluminate_fullscreen_workaround").addClass("inverted"); });