Aloodo / ad.aloodo.com

http://ad.aloodo.com/
GNU Affero General Public License v3.0
19 stars 4 forks source link

BlockAdBlock-style function support #10

Open dmarti opened 8 years ago

dmarti commented 8 years ago

Just putting this out for discussion if anyone is interested. The BlockAdBlock tool lets you register a function to be called if an ad blocker is detected.

// Allows to add an event if AdBlock is detected
// #detected: boolean (true: detected, false: not detected)
// #fn:       function
blockAdBlock.on(detected, fn);

Useful to have a similar interface for tracking detection?

Source: http://fuckadblock.sitexw.fr/blockadblock/

dmarti commented 8 years ago

Done, needs documentation.

https://github.com/Aloodo/ad.aloodo.com/commit/5ea48c43b868a7921a82e68d0fed9f9f24edefdc

http://blog.aloodo.org/posts/track-js-script/