User:Sophiedp/global.js

/* Remove autofill delete reason */ if (mw.config.get('wgAction') === 'delete') { document.getElementById('wpReason').removeAttribute('value'); }

/* Community Central only JS */ if (mw.config.get('wgCityId') === '177') { /* Make source editor use dark syntax highlighting theme */ if (       mw.config.get('wgIsEditPage') &&        !document.body.classList.contains('code-editor')    ) { mw.config.set('wgIsDarkTheme', true); }   /* Make w:c:dev:DarkAbuseFilter work */ var eve = mw.config.get('wgCanonicalSpecialPageName'); if (eve === 'AbuseFilter' || eve === 'AbuseLog') { document.body.classList.add('oasis-dark-theme'); }   /* Import script for archiving my wall */ if (mw.config.get('wgNamespaceNumber') === '1201') { mw.loader.load('https://a-sina.herokuapp.com/archive.js'); } }

/* Enable importing quick create scripts */ window.vanguardToolsConfig = { create: true };

/* Imports */ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MaximizeAce.js',        'u:dev:MediaWiki:VanguardTools.js'    ] }, {    type: 'style',    article: 'u:dev:MediaWiki:DarkGlobalNavDropdowns.css' });

/* Deal with the toolbar (and things that may be added to it) */ mw.loader.load('https://a-sina.herokuapp.com/toolmenu.js');