User:MACH-59330/global.js

// global imports importArticles({   type: 'script',    articles: [        'u:tes:Common.js/DiscussionsLinks.js',        'u:dev:ConsistentModules/code.js',        'u:dev:DiscussionsFeed.js',        'u:dev:DiscussionsRailModule/code.js',        'u:dev:GlobalChatJS.js',        'u:dev:SeeMoreActivityButton/code.js',        'u:dev:SkinSwitchButton/code.js',        'u:dev:WorkingMoreUsersCount.js',        // 'u:de.trollocool:VanguardTools.js',        // 'u:dev:PortableCSSPad/code.js',        //  using these in Tampermonkey for quick toggling    ] });

// global header recolor if ( document.querySelector('.wds-global-navigation') !== null ) { mw.util.addCSS(   '.skin-oasis .wds-global-navigation-wrapper .wds-global-navigation {\n' +        '\tbackground-color: ' + wgSassParams['color-community-header'] + ';\n' +    '}'); }

// global footer recolor if ( document.querySelector('.wds-global-footer') !== null ) { mw.util.addCSS(   '.skin-oasis .wds-global-footer {\n' +        '\tbackground-color: ' + wgSassParams['color-community-header'] + ';\n' +    '}'); }

// source editor recolor if ( document.querySelector('.editor') !== null && skin == 'oasis' ) { mw.util.addCSS('' +   '.wds-global-navigation, .EditPageHeader, .EditPage .module > h3 {\n' +        '\tbackground-color: ' + wgSassParams['color-community-header'] + ' !important;\n' +    '}' +    '.WikiaPage {\n' +        '\tborder-color: ' + wgSassParams['color-community-header'] + ' !important;\n' +    '}'); }

// chat link for premium page header (function {   if ( document.querySelector('.wds-community-header') !== null && typeof ChatWidget !== 'undefined' ) {       var wchexpdpdn = document.querySelector('#wds-icons-explore-tiny').parentNode.nextElementSibling.firstElementChild,            wchchatli = document.createElement('li'),            wchchata = document.createElement('a'),            wchtxtchat = document.createTextNode('Chat');        wchchata.setAttribute('href','/wiki/Special:Chat');        wchexpdpdn.appendChild(wchchatli);        wchexpdpdn.lastChild.appendChild(wchchata);        wchexpdpdn.lastChild.firstChild.appendChild(wchtxtchat);    } });

// open chat in new tab window.wgWikiaChatWindowFeatures = '';