MediaWiki:Vector.js: Difference between revisions

From Formula One Wiki
Jump to navigation Jump to search
(Created page with "→‎All JavaScript here will be loaded for users of the Vector skin: if (mw.config.get('wgCanonicalSpecialPageName') === 'CreateAccount') { function tryRemoveBox(attempts) { var box = document.querySelector('.mw-createacct-benefits-container'); if (box) { box.remove(); } else if (attempts > 0) { setTimeout(function () { tryRemoveBox(attempts - 1); }, 100); } } tryRemoveBox(20); }")
 
No edit summary
 
Line 1: Line 1:
/* All JavaScript here will be loaded for users of the Vector skin */
/* All JavaScript here will be loaded for users of the Vector skin */
if (mw.config.get('wgCanonicalSpecialPageName') === 'CreateAccount') {
  function tryRemoveBox(attempts) {
    var box = document.querySelector('.mw-createacct-benefits-container');
    if (box) {
      box.remove();
    } else if (attempts > 0) {
      setTimeout(function () {
        tryRemoveBox(attempts - 1);
      }, 100);
    }
  }
  tryRemoveBox(20);
}

Latest revision as of 07:20, 5 August 2025

/* All JavaScript here will be loaded for users of the Vector skin */