How to block comment "advertisement" @div class ?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
Kevil
Posts: 40
Joined: Fri Oct 14, 2016 12:42 pm

How to block comment "advertisement" @div class ?

Post by Kevil »

E.g.

Code: Select all

<div class="qa4df21132306f40a02e12ff43a8b0697 qe11278949746996dcf460b6f377a4de9">advertisement</div>
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: How to block comment "advertisement" @div class ?

Post by lewisje »

You would use xpath to target the text content of an HTML element, and this sort of thing only works in uBlock Origin; I posted some links here, and ABP is still considering whether to support it: forum/viewtopic.php?t=48930
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block comment "advertisement" @div class ?

Post by mapx »

or -abp-contains
see
en/filters#elemhide-emulation
Post Reply