Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Collapsible comments

by Anonymous Monk
on Jan 09, 2013 at 15:57 UTC ( #1012515=note: print w/ replies, xml ) Need Help??


in reply to Collapsible comments

unfinished :) https://developer.mozilla.org/en-US/docs/DOM/Node.nextSibling toggleDisplay

javascript:(function(){ var d = document; var InsertToggler = function(tr){ var newa = d.createElement('a'); newa.appendChild( document.createTextNode("*hide*") ); newa.onclick = 'toggle(this.parentElement.parentElement.nextEl +ementSibling)'; tr.firstElementChild.appendChild( newa ); }; var e = d.getElementById('replies_table').getElementsByTagName('tr +'); var a, p; for(var i = 0; i < e.length; i++){ a = e[i]; if( a.className.match(/\breply-body/) ){ InsertToggler( e[i-1] ); } } })();

update: ?node_id=3989;BIT=toggle;D
expRAT
Free Nodelet Hack: Toggle bodies of Old Replies


Comment on Re: Collapsible comments
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2014-07-29 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (220 votes), past polls