Difference between revisions of "MediaWiki:Common.js"
From wiki.thepatternofeverything.org
(2 intermediate revisions by the same user not shown) | |
(No difference)
|
Latest revision as of 13:13, 22 August 2022
//BEGIN remove Main Page title var mpTitle = "Main Page"; var isMainPage = (/(title=|\/wiki\/)([Tt]alk:|)[Mm]ain[ _][Pp]age/.test(document.location)); var isMainPageFront = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle); var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1)); if (isMainPage && isMainPageFront && !isDiff) { document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>'); } //END remove Main Page title