A Chrome extension integrated directly into Gmail
JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
vendor
woodchuck
README.md
manifest.json
squawker.js
woodchuck.js

README.md

Woodchuck

A chrome extension purpose-built to bring information from Precision Nutrition into Gmail.

squawker.js

The main process listening on the host page that pings back to the extension when events happen. This gets inected directly into Gmail and is what sends messages to the listener. It needs to be injected directly because the gmail JS library that's used needs access to Gmail's JS which is not available unless it's directly injected.

woodchuck.js

Bootstraps the extension.

woodchuck/authentication.js

Authentication related functionality.

woodchuck/injector.js

Injects required javascript into the host page (Gmail).

woodchuck/viewport.js

The extension's front end which takes care of injecting into the host page's DOM and keeping things in sync.

woodchuck/listener.js

Methods to listen for events from the squawker and dispatches them appropriately

Note

The extension defaults to using the production site, but as a developer you can change the destination by issuing a localStorage.setItem('es_hostname', 'https://whatever.pn.com') in the javascript console of your Gmail tab and reloading the page.