Assume I have the following HTML code:

<div ...>
  ...
  <div .....>
     ...foobar...<hr>...aabbcc..
  </div>
  ...
  <div .....>
     <hr>
  </div>
  ...
  <div .....>
     ....blah blah...<hr>.....other text
  </div>
  ...
  <div .....>
     <hr>
  </div>
   ...
</div>

Now I want to remove/hide only all these (innermost) <div> elements which 
contains only <hr> elements + additional white 
spaces but no further text.

The following GM statement comes close but does not work:

$("div:contains('<hr>')").eq(($("div:contains('<hr>')").length) - 
1).css("display", "none");

The statement above remove brutally ALL <div>s which contain a <hr>. But I want 
to keep those with additional text.

How can I restrict the hiding to <hr>-only <div>s?

Ben








-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to