Block parent selector

Various discussions related to Adblock Plus development
Post Reply
sohel
Posts: 2
Joined: Mon Aug 29, 2016 10:13 am

Block parent selector

Post by sohel »

Hi,

it would be usefull to provide "hide selector, if contain selector".
Indeed, some website like Facebook use same class and structure for post and ads.
To handle this, we need to hide block, if it contain another selector or raw string.

Example:

Code: Select all

<article class="art">
  <div class="tohide">Hide me !</div>
</article>
<article class="art">
  <div class="tokeep">Don't hide me !</div>
</article>
selector: ##.art##.tohide
sohel
Posts: 2
Joined: Mon Aug 29, 2016 10:13 am

Re: Block parent selector

Post by sohel »

thx for your answer Usain Bolt
Post Reply