title: Greasemonkey, delete <a> element
body: <p>I have this Greasemonkey script, I originally wanted to get all the <code>&lt;table&gt;</code> elements and search through those for  but I couldn't get that to work.  So I tried searching for the <code>&lt;a&gt;</code> elements themselves and just hiding them if they contained "<a href="http://www.4chanscapepk.t35.com" rel="nofollow noreferrer">http://www.4chanscapepk.t35.com</a>" but its not working either.  What am I missing?</p>
  
  <pre><code>var results = document.getElementsByTagName("a");
  for ( var i=0; i&lt;results.length; i++ ) {
      if (
          results[i].href.indexOf("http://www.unwantedsites.com") == 0 ) {
          results[i].parentNode.style.display = "none";
      }
  }
  </code></pre>