Re:Show HN: Gmail.js – JavaScript API for Gmail
by joshuacc on Wednesday November 27, 2013 @03:54PM
(#6811071)
It wouldn't necessarily need to be code. It could just be JSON data with updated selectors, etc. Just make sure you use JSON.parse on it, and there aren't any security issues from just fetching the data.
That being said, you should be able to use this to load new selector strings for the API:
https://addons.mozilla.org/en-US/developers/docs/sdk/latest/...
http://developer.chrome.com/extensions/webRequest.html