Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Collapsible comments

by Anonymous Monk
on Jan 09, 2013 at 15:57 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found