MediaWiki:MinimalTestModeAlert.js

function disableTestmode { $.nirvana.sendRequest({       controller: 'ContentReviewApiController',        method: 'disableTestMode',        callback: function  {            new Wikia.Querystring.addCb.goTo;        },        onErrorCallback: function (e) {            console.error('[MinimalTestMode] ' + e);        }    }); }

mw.hook('dev.wds').add(function (wds) {   if (mw.config.get('wgContentReviewTestModeEnabled')) {        $('.content-review-module-test-mode-disable').parent.parent.hide;        $('.wds-community-header__wiki-buttons > .wds-button.wds-is-secondary:last').after('' + wds.icon('text-small').outerHTML + '');    } });

importArticle({   type: 'script',    article: 'u:dev:MediaWiki:WDSIcons/code.js' });