as a web developer, I want to markup advertisements so they can automatically be blocked

revision 6aab0766544d47b082f8db6d71fb2ebb7354f1f5

raw

README.rst

As a web developer, I want to declare certain HTML elements as advertisement, so that they get automatically blocked by ad blockers (without requiring custom filter rules).

What kind of markup/classes/IDs do I need to use?

I couldn't find anything about that in the ublock origin wiki.


"make ads blockable"

https://stackoverflow.com/questions/27478020/make-visitors-adblock-filter-block-non-ad-elements

class="advertiser"
raw

test.html

1
2
3
4
5
6
7
8
9
10
<html>
 <head>
  <title>Adblocktest</title>
 </head>
 <body>
  <p>normal paragraph 1</p>
  <p class="advertiser">ad paragraph</p>
  <p>normal paragraph 2</p>
 </body>
</html>

History