Skip to content

gilgen/woodchuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Chrome extension integrated directly into Gmail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published