MediaWiki:Common.js: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ |
/* Any JavaScript here will be loaded for all users on every page load. */ |
||
/* Suppresses the title text on any page using {{suppress}} template. */ |
|||
var containsSuppression = document.getElementById("suppression"); |
|||
if (wgUserName == "Cary Bass") { |
|||
alert(containsSuppression.innerText); |
|||
var documentH1 = document.getElementsByTagName("h1"); |
|||
var titleElement = documentH1[0]; |
|||
titleElement.innerText = ""; |
|||
} |