Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Mg27713root (talk | contribs) m (var?) |
Mg27713root (talk | contribs) m (No need for load listener?) |
||
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. */ | ||
− | addEventListener("load", function() { | + | //addEventListener("load", function() { |
− | + | var title = document.getElementById("firstHeading"); | |
− | + | if (title.innerText === "Main Page") | |
− | + | title.style.display = "none"; | |
− | }); | + | //}); |
Revision as of 03:47, 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"; //});