Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 perusing the Monastery: (7)
As of 2015-07-06 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls