Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AdBlock plus hids elements with ids or class with the word "ad"

Tags:

html

css

adblock

I have two divs in my site one with id ad_holder and another with id ad_buttons"

When testing the site on Mozilla with ad block plus installed I noticed that both divs were hidden. On further inspection I noticed it that Adblock was the culprit probably because of the ID names. I also noticed that Adblock created (or maybe has a ready made) CSS file, that sets the display to hidden.

I know I can fix this by simply changing the IDs or trying to override the Adblock CSS but still need to know if there is yet another alternative way of fixing this, like a small piece of code that tells Adblock it's not a real ad.

The contents of the divs are not real ads, it just holds .jpegs about the client's business.

like image 798
TDsouza Avatar asked Dec 29 '12 05:12

TDsouza


People also ask

What are AdBlock elements?

D block elements are the elements that can be found from the third group to the twelfth group of the modern periodic table. The valence electrons of these elements fall under the d orbital. D block elements are also referred to as transition elements or transition metals.

How do you unlock elements on Adblock Plus?

Right-click a group and choose "Show/hide filters" and this will show you the custom filters. Remove the respective filters from the right window. This should unblock the desired element again.

What's the difference between AdBlock and Adblock Plus?

In short — no. Both are ad blockers, but they are separate projects. Adblock Plus is a version of the original "ad-blocking" project while AdBlock originated in 2009 for Google Chrome.


2 Answers

It's better to rename your classes and id's. I would say, that image names, directories also can cause accident disappearing. Solution is to avoid words like:

  • ad
  • ads
  • adv
  • advert
  • advertisement
  • banner
  • banners
like image 172
a.s.panchenko Avatar answered Sep 23 '22 06:09

a.s.panchenko


List could be found here. Just double check because different on version and software, but i think it cover most of parts. https://easylist.to/

like image 45
valentasm Avatar answered Sep 22 '22 06:09

valentasm