Chrome extension - parsing Gmail

I am creating a Chrome browser extension. I want to be able to parse the content of a (currently viewed) email message in Gmail (and some other email clients like Hotmail, Yahoo, etc.). I looked at Stackoverflow and google developer guide but I couldn't find how it should be done.

If you could provide a little toy example of how to read email content (i.e. have a variable that contains email text \ HTML content) that would be great.

thank.

+3


source to share


2 answers


Have a look at Content Scripts ... Using the standard Document Object Model (DOM), they can read the details of web pages the browser is visiting



+2


source


You should check the API here, https://github.com/joscha/gmailr , it should get started.



Edit: There's another recently released unofficial API (still being updated) at https://github.com/KartikTalwar/gmail.js

+5


source







All Articles