Search code examples
javascriptblockadblock

Is there an option to block some content in web browser without ID of that element?


Is there an option to block some content in web browser without ID of that element?

I want to hide comments from one user on one website. Because I'm using firefox, I tryed AdBlock extension, but it works only if I know Id... as I understand :)

I know only RELATIVE LINK and NAME, is there any chance to block his comments? I really like that website, but I have a little problem with this guy and will be better for my heart if it will be hidden for me :)

thanks...

Structure of comments is here

<div class="comment odd">
  <div class="clear-block">
    <div class="submitted">
      <span><a href="RELATIVE LINK" title="show profile of user">NAME</a></span>
      &nbsp;    
    </div>
    <table class="comment-wrapper"><tbody><tr><td>
        <div class="content">
        WANT HIDE...
        </div>
    </td></tr></tbody></table>
  </div>
</div>

Solution

  • here ya go!

    basically it looks for comments with a link with 'bob' (replace with the username) and hides the entire comment.

    http://jsfiddle.net/yx58X/2/