This sample extension uses a few APIs in order to demonstrate how a complete project might work.
http://privacyparrot.com/ is a great websites that gives a simple answer to the question "Does this website sell any personal information I might give it?" http://privacyparrot.com/privacy-policy-for-google.com is one such answer.
This sample extension uses the tabs
API in order to detect what page
you're currently viewing, and pings Privacy Parrot to figure out whether that
page sells your personal information. The result is cached for two weeks using
the storage
API. We also had to request host permissions to scrape
data from the Privacy Parrot site via cross-origin XMLHttpRequest
.
Note that a side-effect of this extension is that Privacy Parrot has a complete record of the hosts you've visited. A better version of this extension might only make the Privacy Parrot request when the user explicitly asks for information.
The license for this extension (BSD 3-clause) can be found in the LICENSE.markdown file.
- Mike West: https://mikewest.org/