OK, here's something to clean up reaped items somewhat from Perl News but leave them accessable. Replace the jquery URL with the right path to your copy (which you can obtain from jquery.com). The commented-out chunk of code shows how you could completely replace the title row in question rather than just twiddling its display (you also could do something similar to my other example and append them to the bottom of the enclosing table instead).

<script type="text/javascript" src="http://example.com/js/jquery-1.2.3 +.min.js"></script> <script type="text/javascript"> function pm_clean_news( ) { // Perl News node id is 23771 $( "body#id-23771 a[href*=?node_id=52855]" ).each( function( idx ) { // tr > td > this a var containing_ele = this.parentNode.parentNode; // Remove following tr $(containing_ele).next().remove(); // Change CSS properties $(containing_ele).removeClass( 'hilight' ); $(containing_ele).css( 'background-color', '#eeffee' ); $(containing_ele).css( 'margin-bottom', '5px' ); /* var reaped_title = $( "td:first-child a:first-child", containing_e +le )[0]; $(containing_ele).replaceWith( '<tr><td colspan="3"><a href="' + $(reaped_title).attr('href') + '" +>' + $(reaped_title).text() + '</a></td></tr>' ); */ }); } $(document).ready( function () { pm_clean_news(); }); </script>

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


In reply to Free Nodelet Hack: Re: 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.