Can I make sure an element is blocked?

This is the place to discuss issues with the acceptable ads list like a website no longer complying with the criteria.
Post Reply
rotsee

Can I make sure an element is blocked?

Post by rotsee »

Hello, this question is not really about acceptable ads, but I don't know where else to put it.

When I put ads in web pages, I normally wrap them in an aside block or similar, to clearly mark them as such (e.g. by writing “ads:”, like here http://right-arrow.net/). Now, for Ad Block users the actual ad will be hidden, while the container will not. Of course it would be nice (for me) if every single visitor saw those ads, but I totally understand why someone is using Ad Block (I often do myself), and rather than having the page look ”broken”, I would prefer to be able to hide the container element all together for Ad Block users. Is there any class name or similar that I can put on an element to make sure that it is always blocked by Ad Blocker?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Can I make sure an element is blocked?

Post by mapx »

you could use for example
ADbox class:

easylist contains this filter:

Code: Select all

##.ADbox
see easylist list
https://easylist-downloads.adblockplus.org/easylist.txt

You can choose some div or class hidden for all the pages/sites like ADbox (I mean those which start with # character)
rotsee

Re: Can I make sure an element is blocked?

Post by rotsee »

Thanks!
Post Reply