dhowe / AdNauseam-chrome

A Chrome extension to help defend against surveillance and tracking by ad-networks
19 stars 6 forks source link

AdBlock Integration #5

Open dhowe opened 9 years ago

dhowe commented 9 years ago

Need to override at least one function in an (unmodified) adblocker.

This is tricky if not impossible (any Chrome gurus want to weigh in on this?) when the adblocker does not expose a public API, as Adblock Plus does in the FF case. Which means we may end up needing to fork a version of an existing adblocker... at which point it may be easier to just package ADN as a single extension, rather than using the 2-install model we have for FF.

That question aside, one option that looks promising, though we would need to check licensing, is AdBlock. See links to source below. At first glance, it appears that replacing/overriding elementPurger.onPurgeRequest() does what we need...

svn:  http://adblockforchrome.googlecode.com/svn/trunk/ adblockforchrome-read-only
releases: http://code.getadblock.com/releases/

Some info on cross-extension messaging