Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

oha's scratchpad

by oha (Friar)
on Jun 05, 2004 at 11:20 UTC ( #361464=scratchpad: print w/ replies, xml ) Need Help??

Follow Ups show/hide FreeNode hack

from inspiration of jdporter in Free Nodelet Hack: Toggle bodies of Old Replies, the following FreeNode hack hide the bodies of every follow-ups which are older then the "last checked flag". Also every followup have a clickable +/- which can show/hide the reply body. (tested only on mozilla)
to use it, go to Free Nodelet Settings and paste in what's follow
<!-- the HTML: --> <a href="javascript:init_old_reply(1)">SHOW ALL</a> | <a href="javascr +ipt:init_old_reply(0)">HIDE ALL</a> <!-- the JS: --> <script language="javascript"><!-- init_old_reply(-1); function init_old_reply(type) { var ae = document.all ? document.all : document.getElementsByTagNa +me("*"); for( i=0; i<ae.length; i++) { var elem = ae`[i]; if(elem.className == "reply" && type<0) { i++; var tde = ae`[i]; var inner = tde.innerHTML; tde.innerHTML = '<table border=0 cellpading=0 cellspacing= +0><tr><td><font size="-2" '+ 'onClick="show_old_reply(this);">+/-</font></td><td>'+ inner+'</span></td></tr></table>'; } if(type<0) { if(elem.className == "reply-body") elem.style.display = 'none'; } else { if(elem.className=="reply-body" || elem.className=="reply- +new-body") elem.style.display = type > 0 ? 'table-cell' : 'no +ne'; } } } function show_old_reply(td) { var ae = document.all ? document.all : document.getElementsByTagNa +me("*"); for ( i = 0; i < ae.length; i++ ) { var elem = ae`[i]; if(elem == td) { var ct = 0; for(; i<ae.length; i++) { var elem = ae`[i]; if(elem.className == "reply-body" || elem.className==" +reply-new-body") { if(elem.style.display == 'none') elem.style.display = 'table-cell'; else elem.style.display = 'none'; ct++; if(ct==2) return; } } } } } //--></script>
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2014-07-13 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls