User:Lofty abyss/monobook.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/**
* StewardScript extends the user interface for Wikimedia stewards' convenience.
* @see https://meta.wikimedia.org/wiki/StewardScript
* @update-token [[File:pathoschild/stewardscript.js]]
*/
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.stewardscript.js');
// JavaScript Document by [[User:Mwpnl]]
function hide_newpages(){
var lis = document.getElementById("content");
inputNodes = lis.getElementsByTagName("li");
for (j=0;j<inputNodes.length;j++) {
if(inputNodes[j].innerHTML.toString().indexOf("Board elections/") != -1){
inputNodes[j].style.display = "none";
}
}
}
if (document.location.toString().indexOf("Special:NewPage") != -1 && document.location.toString().indexOf("showboard") == -1){
$(function() { hide_newpages(); } );
}