inherit
40157
tyrantlytamale 627939549 tjhtmlmaniac
0
Sept 3, 2023 15:17:02 GMT -8
Tylr
The stale taste of recycled air.
2,964
April 2005
tyrantlytamale
|
Post by Tylr on Apr 4, 2012 5:30:01 GMT -8
This code will hide posts from specific boards from the "10 most recent posts on this forum" button. Note that this will alter the results you get when you click on the link: if there were 10 and 3 were from now-hidden posts, you'll only see 7.
Main Footer Open Source
<script type="text/javascript"> <!-- // Hide specific boards from recent posts listing
var numhidden=0; function hideboard(boardname){ if(location.href.match(/action=recent/)){ ah=document.getElementsByTagName('a'); for(i=0;i<ah.length;i++){ if(ah.href.match('board='+boardname)){ ah.parentNode.parentNode.parentNode.parentNode.style.display='none'; numhidden++ }}}}
//Hide these boards hideboard('grave'); hideboard('spam');
if(location.href.match(/action=recent/)){ bld=document.getElementsByTagName('b'); for(i=0;i<bld.length;i++){ if(bld.innerHTML.match('Result')){ bld.style.display='none' } else if(bld.innerHTML.match('Most Recent Posts')){ bld.innerHTML+=' <i>('+numhidden/11+' Results Hidden)</i>'; }}} --> </script>
|
|