MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
// Remove stats | // Remove stats panel on Create Account Page | ||
mw.loader.using('mediawiki.util').then(function () { | mw.loader.using('mediawiki.util').then(function () { | ||
if (mw.config.get('wgCanonicalSpecialPageName') === 'CreateAccount') { | if (mw.config.get('wgCanonicalSpecialPageName') === 'CreateAccount') { | ||
function | function removePanel() { | ||
var | var box = document.querySelector('.mw-createacct-benefits-container'); | ||
if (box) box.remove(); | |||
} | } | ||
removePanel(); | |||
setTimeout(removePanel, 500); | |||
setTimeout( | setTimeout(removePanel, 1500); | ||
setTimeout( | setTimeout(removePanel, 3000); | ||
setTimeout( | |||
} | } | ||
}); | }); | ||
Revision as of 14:38, 3 December 2025
// Remove stats panel on Create Account Page
mw.loader.using('mediawiki.util').then(function () {
if (mw.config.get('wgCanonicalSpecialPageName') === 'CreateAccount') {
function removePanel() {
var box = document.querySelector('.mw-createacct-benefits-container');
if (box) box.remove();
}
removePanel();
setTimeout(removePanel, 500);
setTimeout(removePanel, 1500);
setTimeout(removePanel, 3000);
}
});