Home
About
Policies
FAQ
Forums
Registration
Password Recovery

MediaWiki:Common.js

From Tapestries MUCK

Revision as of 10:37, 13 April 2007 by WhiteWizard (Talk | contribs)
Jump to: navigation, search

Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh); Konqueror: click Reload or press F5; Opera: clear the cache in Tools → Preferences; Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.

var mpTitle = "Tapestries MUCK";
var isMainPage = (/(title=|\/wiki\/)([Tt]alk:|)[Tt]apestries[ _][Mm]uck/.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) {
  if (isMainPageFront && !isDiff)
  {
    document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, ' +
                   'h1.firstHeading { display: none !important; } /*]]>*/</style>');
  }
}
Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox