gmailjs-node-boilerplate | minimal extension which demonstrates how to create | Browser Plugin library
kandi X-RAY | gmailjs-node-boilerplate Summary
kandi X-RAY | gmailjs-node-boilerplate Summary
This repo contains sample code to get a WebExtensions-based browser-extension using the gmail.js library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start the extension .
- Add a script to the browser .
gmailjs-node-boilerplate Key Features
gmailjs-node-boilerplate Examples and Code Snippets
Community Discussions
Trending Discussions on gmailjs-node-boilerplate
QUESTION
I'm just playing around with a chrome extension based on this tutorial https://cloud.google.com/blog/products/gcp/deepbreath-preventing-angry-emails-with-machine-learning .
When i use the extension for some reason I am unable to get the draft email's body using gmail.js https://github.com/josteink/gmailjs-node-boilerplate .
Using the gmail.js boilerplate,
...ANSWER
Answered 2020-Jan-28 at 08:32Unfortunately, it appears the save_draft
observer is not firing anymore after "New Gmail" was introduced in 2018. I loaded your extension myself and confirmed that, while the view_email
event is still firing as expected, save_draft
is not. Gmail.js's developer confirmed in a recent issue report that another event, send_email
, has the same issue with the current version of Gmail. So it seems the script is not working as well as it used to.
If you still want to get this working, a few options are:
- Find an alternate Gmail.js event to use instead of
save_draft
that is still working - Get the contents of
div.editable
using some other event handler, such as JavaScript's standardonkeypress
- Roll up your sleeves, debug the issue with the Gmail.js plugin, and send a pull request to its developer if you can find a fix
Edit: Here is a working solution using standard JS events keydown
and click
as well as a mutation observer to wait for the field to appear:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gmailjs-node-boilerplate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page