User:Sophiedp/global.js

/* Community Central only JS */ if (mw.config.get('wgCityId') === '177') { /* Make Ace and source use the dark theme */ /** Needed here so it runs in time for Ace **/ mw.config.set('wgIsDarkTheme', true); }

/* Expand code editor */ /** Needed here so it runs in time for Ace **/ if (document.body.classList.contains('codeeditor')) { importArticle({       type: 'style',        article: 'u:dev:MediaWiki:FixAceWidemode.css'    }); document.addEventListener('DOMContentLoaded', function {        document.querySelector('.editpage-widemode-trigger').click;    }); }

/* Now with an actual linter, better syntax highlighting, and ES6! */ mw.loader.load('https://a-sina.herokuapp.com/cerria.js');