User:Sophiedp/global.js

//Make dev not as bright $('body.wiki-dev').css('background-color', '#CDD5F1');

//Auto exand ace if (mw.config.get('wgCityId') !== '177') { /*setTimeout(function {            $('.codeeditor:not(.ns-10) .editpage-widemode-trigger').click;    }, 500);*/ async function checkElement (selector) { while (document.querySelector(selector) === null) { await rafAsync; }       return true; }   checkElement('.codeeditor:not(.ns-10) .editpage-widemode-trigger') //use whichever selector you want .then((element) => {    console.info(element);     //Do whatever you want now the element is there }); }

//Imports importArticles({   type: 'script',    articles: [        'u:dev:QuickCreateMessageWallGreeting/code.js',        'u:dev:QuickCreateUserPage/code.js',        'u:dev:VanguardTools.js'    ] }, {    type: 'style',    article: 'u:dev:MediaWiki:FixAceWidemode.css' }); mw.loader.load('https://rebecca.flightzero.cf/alert.js');