Home
About
Policies
FAQ
Forums
Registration
Password Recovery

MediaWiki:Common.js

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
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>');
+
-
  }
+
-
}
+

Latest revision as of 10:44, 13 April 2007


Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox