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>
|