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;    }    $('.wds-community-header .wds-tabs__tab')        .has('#wds-icons-explore-tiny')        .find('.wds-list')    .append( $('', {           append: $('', { 'href': mw.util.wikiGetlink('Special:Chat'), text: 'Chat' })       })    ); });

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

// Fast scrolling for ModernBackToTopButton. window.BackToTopFade = 300; window.BackToTopSpeed = 300; window.BackToTopModern = true;

// Nord in Highlight-js mw.hook('dev.highlight').add(function(hljs) {   hljs.useTheme('nord'); });

// Global imports (ordered by load priority). importArticles({   type: 'script',    articles: [        // DOM modifications        'u:dev:FANSUN.js',        'u:dev:MobileEditor.js',        'u:dev:ContribsLink/code.js',        'u:dev:VanguardTools.js',        // Header modifications        'u:dev:WhatLinksHere/code.js',        'u:dev:View Source/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:ConsistentNotifications.js',        // Content & interactivity        'u:dev:ImportJS-Plus.js',        'u:dev:QuickDiff/code.js',        'u:dev:QuickLogs/code.js',        'u:tes:Common.js/DiscussionsLinks.js',        'u:dev:BackToTopButton/code.js',        // Tools        'u:dev:ToggleTestMode/code.js',        'u:dev:ToggleDebugMode/code.js',        // Developer scripts        'u:dev:GlobalChatJS.js',        'u:dev:UnsafeScripts/code.js',        // Rail modifications        'u:dev:ConsistentModules/code.js',        'u:dev:DiscussionsRailModule/code.js', 'u:dev:FixJSRTLang.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:WorkingMoreUsersCount.js' ] });

// FANDOM-Monaco theming. window.monacoTheme = 'solarized-dark';