dhowe / adnauseam-chrome Goto Github PK
View Code? Open in Web Editor NEWA Chrome extension to help defend against surveillance and tracking by ad-networks
A Chrome extension to help defend against surveillance and tracking by ad-networks
Keeping a list of next steps here (though each will be a separate issue):
This entity should handle registering, de-registering, and listening for request-related events.
The equivalent events in Firefox are "http-on-modify-request" and "http-on-examine-response".
It needs to be able to read and modify cookies and headers for all requests.
It also needs to be able to distinguish whether requests are generated by ADN; that is, whether they have come from AdNauseam's hidden tab/window.
A simple logger that writes JSON-formatted messages to a file (generally adnauseam.log, which it should create if not existing). It should have functions like:
Logger.log(); // should take msg, object or multiple of either
Logger.warn(); // should take msg, exception or both
Logger.err(); // should take msg, exception or both
Logger.dispose(); // cleanup the logger on shutdown
Logger.deleteLog();
Visit URLs in a hidden tab/window invisible to user.
In FF, we use the page-worker API for this. In Chrome we may need to create and manage an iframe on the background page (though I really hope there's a nicer way to do this). Another option might be this.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.