How can I hide with this...

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
shangtang
Posts: 2
Joined: Fri Jul 20, 2012 5:23 pm

How can I hide with this...

Post by shangtang »

I want to Hide the <a>xx</a> in
<div class="pg">
<a href="..">xx</a>
<a class="ss">ss</a>
</div>
but dont Hide the <a class="ss">ss</a>
User avatar
Gingerbread Man
Posts: 1339
Joined: Fri Aug 12, 2011 5:28 am

Re: How can I hide with this...

Post by Gingerbread Man »

You can't block based on innerHTML (“xx”).

You can use an attribute instead, e.g.

Code: Select all

example.org##a[href*="part of the URL"]
Or you can block based on DOM placement, e.g.

Code: Select all

example.org##div.pg>a:first-of-type
shangtang
Posts: 2
Joined: Fri Jul 20, 2012 5:23 pm

Re: How can I hide with this...

Post by shangtang »

thanks! I got it.
Locked