Common.js
From Sonic Retro
Hiding subpage hierarchies for certain pages
Anyone have any objections to me adding a bit of code here to hide the subpage hierarchy thing for certain pages which aren't really subpages and are only classed as such cos of their name containing a forward slash? Something like this should work:
addOnloadHook(function() { var pages = { 'Flying Fortress/Death Egg cliché': true }; if (pages[wgTitle]) { document.getElementsByClassName('subpages').item(0).style.display = 'none'; } });
Of course if there's any better way to do it that could be used. --Shobiz 14:41, 24 September 2008 (UTC)