Hello world chrome extension using gmail.js
This is a sample chome extension that uses gmail.js to build apps on top of Gmail.
The manifest in this repo bypasses the new Content Security Policy (CSP) enforced by Gmail.
Hello world chrome extension using gmail.js
License: MIT License
Hello world chrome extension using gmail.js
This is a sample chome extension that uses gmail.js to build apps on top of Gmail.
The manifest in this repo bypasses the new Content Security Policy (CSP) enforced by Gmail.
I'm trying to get chrome extension options using chrome.storage.sync from within my main.js but cannot access the same chrome object as the content script. The main.js chrome object does not have the same functionality as the one in content.js.
I figured that a way round this was messaging between the scripts but cannot get that working.
If anyone has a working example of passing messages between main.js and content.js within the context of this boilerplate that would be great.
Or if that is no doable, getting access to extension options from main.js
will do.
This isn't an issue with the library itself, but just hoping to get you feedback. If the content script was just a normal script and didn't embed js links in the dom, you could communicate with a background script using:
chrome.runtime.sendMessage data, (response) ->
However, if you embed the main.js
in to the and I define some behavior on the read_email
event, I need to send some messages to a background script. Because I'm now in the actual tab, not in the content script, I haven't been able to use chrome.runtime.sendMessage
because it seems like it's out of context of the extension at that point.
Do you have suggestions on getting back in to the extension?
If I load this boilerplate up as is, I get this error:
Uncaught TypeError: Cannot read property 'extend' of undefined
Looks like jquery isn't loading before gmail.js needs it
Hi,
With this boilerplate, each time we open/close/write email, navigate in history, all files are reloaded.
I think this makes Gmail crash. This is the case with my extension as soon as I declare observers.
Could you please add a license to this? I think it would make sense to use MIT since that's what gmail.js uses. I'd be happy to send a PR if you like, though I think GitHub has a pretty nice UI for adding licenses.
The main.js is working as it calls gmail.get.user_email() fine. However, I want to do something when the icon is clicked. I added a background.js that has chrome.browserAction.onClicked.addListener and it gets called but I cannot access the gmail object.
Do I have to enable something for this? Am somewhat new to extensions so I feel like I am missing a step.
Thanks for any tips or pointers.
view_email
, refresh
, etc are not firing occasionally if the console is not open.
In that case it can get the email address here:
I noticed with this installed, if I pop an email out to a new window, or click a toast notification for a new inbox message so that it opens in a new window, this error is thrown.
What is the proper way to ensure popups like these work properly?
I can call refresh(main); from the console window of the popup and I get the hello message, so I'm guessing it just needs to be told to run again at load somehow?
selected_emails_data() is returning wrong mail data when inbox type is anything else then default.
For example, if the inbox type is selected as priority inbox, and I am selecting the 5th mail from the inbox (mails are sorted as priority), selected_emails_data() is returning the mail data of 5th mail from default view which is a different mail from the selected one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.