MediaWiki:Common.js

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
/* Main page hacks. Remove default "Main Page" header */
var mpTitle = "{{MediaWiki:Mainpage}}";
var isMainPage = (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 && !isDiff) 
{
document.write('<style type="text/css">/*<![CDATA[*/ #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>');
}