<?xml version="1.0" encoding="windows-1252"?>
<node id="641553" title="Free Nodelet Hack: Toggle bodies of Old Replies" created="2007-09-28 11:22:56" updated="2007-09-28 07:22:56">
<type id="11">
note</type>
<author id="170442">
jdporter</author>
<data>
<field name="doctext">
&lt;p&gt;
OK, just for you: Put the following code in your [id://590089|Free Nodelet]:
&lt;/p&gt;

&lt;code&gt;
&lt;!-- the HTML: --&gt;
Hide old replies: &lt;input name="hide_old_replies" id="hide_old_replies" type="checkbox" onClick="toggle_old_replies()" /&gt;

&lt;!-- the JS: --&gt;
&lt;script language="javascript"&gt;&lt;!--

    function toggle_old_replies(){
      var chk = document.getElementById('hide_old_replies');
      var state = chk.checked ? 'none' : 'table-cell';
      var allelems = document.all ? document.all : document.getElementsByTagName("*");
      var inc = 0;
      for ( i = 0; i &lt; allelems.length; i++ ) {
        if ( allelems[i].className == "reply-body" ) {
          allelems[i].style.display = state;
        }
      }
    }

//--&gt;&lt;/script&gt;

&lt;/code&gt;

&lt;p&gt;
This only toggles the visibility of the &lt;b&gt;bodies&lt;/b&gt; of "old" replies; the header boxes etc. for old replies remain visible. Hopefully that's sufficient for your desires.
&lt;/p&gt;

&lt;p&gt;&lt;small&gt;
Thanks to [tye] for applying the [pmdev://641182|patch|patch] I wrote to make this possible.
&lt;/small&gt;&lt;/p&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-170442"&gt;
&lt;small&gt;&lt;i&gt;A word spoken in Mind will reach its own level, in the objective world, by its own wei[http://www.sacred-texts.com/eso/som/som19.htm|g]ht&lt;/i&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
641113</field>
<field name="parent_node">
641313</field>
</data>
</node>
