Difference between revisions 5475 and 5478 on bswikibooks

/*</pre>
== IE scrollbar compatibility==
<pre>*/
if (window.showModalDialog && document.compatMode && document.compatMode == "CSS1Compat")
{
  var oldWidth;
  var docEl = document.documentElement;

(contracted; show full)
/* </pre>

==Kill Main Page==
<pre> */

//Sakrij "Početna strana" naslov
 var 
mpTitle = "Početna strana";
 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)isDiff = mw.util.getParamValue('diff') || mw.util.getParamValue('oldid');


 if (imw.config.get('wgIsMainPage') && !isDiff)
	mw.util.addCSS('#lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; }');

/* </pre> */