MediaWiki:Common.js

From Van Essen Lab

(Difference between revisions)
Jump to: navigation, search
WikiSysop (Talk | contribs)
(New page: /* Any JavaScript here will be loaded for all users on every page load. */ - Main page hacks. Remove default "Main Page" header: var mpTitle = "{{MediaWiki:Mainpage}}"; var isMainPage ...)
Newer edit →

Revision as of 15:40, 11 December 2008

/* Any JavaScript here will be loaded for all users on every page load. */

/* 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>');
}
Personal tools
Sums Database