title: How to use greasemonkey to selectively remove content from a website
body: <p>The content I am trying to modify has a series of <code>&lt;div&gt;</code> entries, and within each of these are other <code>&lt;div&gt;</code> entries. There are no <code>id</code> tags to help here. What I want the script to do is inspect the content of each of these <code>&lt;div&gt;</code> entries and look for some text. This will be used to determine whether the whole '' entry is deleted/hidden or not. Is this possible? How?</p>
  
  <p>Below is an example. There are several of these in the page, and I want to delete/hide the ones where the text inside the <code>&lt;div class="foo bar"&gt;</code> tags say "Yes." So in this example, this whole thing would get deleted/hidden.</p>
  
  <pre><code>&lt;div class="entry"&gt;
  
  &lt;div class="fooPhoto"&gt;&lt;a href="Addfoo.jsp?tid=954102"&gt;&lt;img class="person" src="http://static.barfoo.com/images/site/icons/dude.png" border="0" width="24" height="24" onerror="this.src='images/site/icons/dude.png'" title="Photo Unavailable" alt="Photo Unavailable" &gt;&lt;/a&gt;&lt;/div&gt;
  
  &lt;div class="fooAvg"&gt;4.7&lt;/div&gt;     
  
  &lt;div class="foo bar"&gt;Yes&lt;/div&gt;
  
  &lt;div class="fooShare"&gt;
  &lt;a class="shareEmail" href="referral.jsp?sid=882&amp;tid=954102&amp;pgid=3"&gt;Share using email&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;/div&gt;&lt;!-- closes entry --&gt;
  </code></pre>