Hrmm, I wonder what this user could possibly have to do with reaped nodes in the Newest Nodes listing . . . .

At any rate that's what I use to clean Newest Nodes. I rarely if ever hit the section pages directly so it doesn't do anything there, but it cleans NN pretty well (perhaps pm_clean_nn would be a better name). If they want to actually see the expunged nodes it's a starting point (Warning: noob jquery follows . . .).

function pm_clean_reaped() { $('td.node-from-594086').each( function( idx ) { // tbody > tr > this td var containing_ele = this.parentNode.parentNode; if( containing_ele ) { var reaped_td = $( "td.reaped", $(containing_ele) ) if( reaped_td.length == 0 ) { $(containing_ele).append( '<tr><td colspan="2" style="font-s +ize: 0.7em;" class="reaped">Reaped: </td></tr>' ); } var reaped_node_href = $( $('a', this ) ).attr('href'); $( '<a href="' + reaped_node_href + '">X</a> ' ).appendTo( $(" +td.reaped", $(containing_ele) ) ); } $(this.parentNode).remove(); } ); }

Of course one could use this as a starting point for further filtering (e.g. modify it to take the selector to filter on and a label (and class) to use in place of "Reaped"). Update: yup, just did it; so I can now let the neenery settle to the bottom of each section.

The cake is a lie.
The cake is a lie.
The cake is a lie.


In reply to Re^3: Reaped Nodes are Cluttering up some of the Sections by Fletch
in thread Reaped Nodes are Cluttering up some of the Sections by Argel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.