User:Siroopwafel/global.js

// No discords (function (window, $, mw) {   window.Discord = window.DiscordIntegratorLoaded = { init: true };    function removeWidget(el) {        el instanceof $            ? el.remove            : el.parentNode.removeChild(el);    }    mw.hook('Discord.widget.rail').add(removeWidget);    mw.hook('DiscordIntegrator.added').add(removeWidget); }(this, jQuery, mediaWiki));

// Better editing importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:CodeEditor.js',        'u:dev:MediaWiki:MobileEditor.js',        'u:dev:MediaWiki:PurgeButton/code.js'    ] });

// Fix math js bug mw.hook('wikipage.content').add(function($content) {   if ($content.find('.tex')) {        mw.loader.load('ext.math.mathjax.enabler');    } });