ChromeSniffer
This is a fork of the original ChromeSniffer. The maintainer hasn't merged a pull request in quite some time, so I'm pulling them here and adding my own along the way.
Installation
First, you'll need to clone this repo:
git clone git://github.com/chieffancypants/chromesniffer.git
To install in chrome, go to the extensions panel (chrome://settings/extensions) and click the "Load unpacked extension' and provide it with the directory you just cloned.
Documentation
There are lots of work-arounds in this script, which makes the flow of events and operations difficult to understand. For that reason I'm documenting the basic workflow of the extension:
- one instance of the "background" page is loaded
main.js
gets injected into each tab by chromemain.js
injectsdetector.js
into the tabdetector.js
runs on the page detecting appsdetector.js
serializes the apps in JSON in a special<meta>
tagdetector.js
issues "ready" event that is listened to bymain.js
- upon receiving that event,
main.js
sends a "result" message tobackground.js
along with the json.parsed app list background.js
recieves the list of apps, stores it intabinfo
arraybackground.js
sets the icon for the popupbackground.js
tells chrome to show/loadpopup.js
popup.js
sendsbackground.js
a message asking for the list of apps