User:MACH-59330/global.js

// Chat link in community header mw.loader.using('mediawiki.util').then(function {   if ( !$('.wds-community-header').exists || mw.loader.getState('ext.Chat2') === null ) {      return;    }    var $wch = {        _ul: $('.wds-community-header .wds-tabs__tab')            .has('#wds-icons-explore-tiny')            .find('.wds-list'),        _a: $('', { 'href': mw.util.wikiGetlink('Special:Chat'), text: 'Chat' }),       _li: $('').append    };    $wch._ul.append($wch._li.append($wch._a)); });

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

// UnsafeScript customization // Override edit button and block site JS imports window.unsafeScriptsConfig = { 'usesitejs': false };

// Fast scrolling for ModernBackToTopButton window.BackToTopSpeed = 300;

// Global imports importArticles({   type: 'script',    articles: [        'u:dev:FANSUN.js',        'u:dev:ContribsLink/code.js',        'u:dev:VanguardTools.js',        'u:dev:WhatLinksHere/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:ConsistentNotifications.js',        'u:dev:QuickLogs/code.js',        'u:tes:Common.js/DiscussionsLinks.js',        'u:dev:ModernBackToTopButton/code.js',        'u:dev:ToggleTestMode/code.js',        'u:dev:GlobalChatJS.js',        'u:dev:UnsafeScripts/code.js',        'u:dev:ConsistentModules/code.js',        'u:dev:DiscussionsRailModule/code.js',        'u:dev:SeeMoreActivityButton/code.js',        'u:dev:WorkingMoreUsersCount.js'    ] });