I'm trying to block a certain element on a site using AdBlock Plus's element hiding feature. However the problem is that there are two elements with the same exact name and type that I'm trying to hide so there's no way to tell the filter which one to keep and which one not to keep.

So I figure there might be a way to hide only the second element by telling it to only hide the second occurrence of an element that matches the filter. Like skip the first one and hide the second occurrence.

Or alternatively maybe hide the one that also has a certain other element in front of it.

Is there any way to do this? Like regular expressions or something?

They're both divs of the same exact classname.

link|improve this question
2  
You can get pretty specific with some adblock rules, can you post an example of the two pieces of HTML in question? Are there any differences at all in the tags? – drew010 Nov 26 '11 at 18:57
feedback

migrated from webapps.stackexchange.com Nov 26 '11 at 16:38

This question came from our site for power users of web applications.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown