Difference between revisions of "MediaWiki:Common.js"
From wiki.thepatternofeverything.org
Line 8: | Line 8: | ||
if (isMainPage && isMainPageFront && !isDiff) | if (isMainPage && isMainPageFront && !isDiff) | ||
{ | { | ||
− | document.write('<style type="text/css">/*<![CDATA[*/ #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>'); | + | document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>'); |
} | } | ||
//END remove Main Page title | //END remove Main Page title |
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