MediaWiki:Common.js
From Card Hunter Wiki
(Difference between revisions)
Line 9: | Line 9: | ||
n=str.indexOf("Items/"); | n=str.indexOf("Items/"); | ||
if (n==17) child1.innerHTML=str.slice(23); | if (n==17) child1.innerHTML=str.slice(23); | ||
+ | n=str.indexOf("Cardhuntria:Community portal"); | ||
+ | if (n>0) parent1.removeChild(child1); | ||
}); | }); |
Revision as of 17:37, 20 February 2013
/* Any JavaScript here will be loaded for all users on every page load. */ $(function() { var parent1=document.getElementById("content"); var child1=document.getElementById("firstHeading"); var str=child1.innerHTML; var n=str.indexOf("Cards/"); if (n==17) child1.innerHTML=str.slice(23); n=str.indexOf("Items/"); if (n==17) child1.innerHTML=str.slice(23); n=str.indexOf("Cardhuntria:Community portal"); if (n>0) parent1.removeChild(child1); });