Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Mg27713root (talk | contribs) (JS hide title) |
Mg27713root (talk | contribs) m (var?) |
||
Line 2: | Line 2: | ||
addEventListener("load", function() { | addEventListener("load", function() { | ||
− | + | var title = document.getElementById("firstHeading"); | |
if (title.innerText === "Main Page") | if (title.innerText === "Main Page") | ||
title.style.display = "none"; | title.style.display = "none"; | ||
}); | }); |
Revision as of 03:43, 26 March 2021
/* Any JavaScript here will be loaded for all users on every page load. */ addEventListener("load", function() { var title = document.getElementById("firstHeading"); if (title.innerText === "Main Page") title.style.display = "none"; });