chrome extension to read the content of gmail attachment (pdf) - google-chrome-extension

I am writing a chrome extension, would like to know how to read the attachment programmatically, have searched in SO and in Google.
Does anybody know how I can do this? thanks in advance

Related

Is there a chrome API for viewing contents of open sites?

Im looking for a way to read the source only of open tabs on my browser, specifically music.apple.com. What chrome api should I use for this? Ive been searching around their docs but couldn't find anything that looks like what I need.

Chrome extension development: permissions, activeTab, I'm confused

I have developed a simple chrome extension which generates QR codes through a form which triggers an API. Through JavaScript the qr code is displayed to the user, and through a button is possibile to download the qr code image.
Since this is a simple extension which is not going to "listen" to or interacting with any users' activities, and since it's not going to change the content of the pages the user visits, what kind of browser_action and permissions I have to set into the manifest.json file?
I'm a bit confused by permissions, activeTab, <all_urls>.
I've read some documentation, but I didn't find any match to what my extension will perform: it feels like I don't have to set any permissions, is that possible? Please help!
Thank you in advance for your answers!

Javascript DOM-Modify html via chrome extension

I am a beginner with dom and now I am trying via a chrome extension to modify the a generic page html elements.
I've searched about it but didn't find anything concrete that could help me solve this.
Do i need to add something to the manifest.json file to be able to do this?
Thanks in advance!

uploading data from localstorage to google drive in a chrome extension

Integrating a chrome extension(not hosted) with google drive seems to be not possible if I am correct. Is there a way to upload content from 'localstorage to google drive in a chrome extension?
Can the depreciated documents list api be used to do that? if yes, how?
For example, user has some data in the localstorage of the popup.html page in the extension. User would want to backup that data in his google drive. How can it be done from a chrome extension with no hosted page.
Thanks in advance.
You can upload files to Drive using JavaScript. Check the step-by-step quickstart guide for JavaScript to learn about it, you will have to change the code in order for it to read from localstorage instead of the filesystem:

Chrome Extensions in Gmail, autosave removes it

I'm trying to write a chrome extension that is used in the GMail compose screen. So far I have it working the way I want to except that when the GMail does its auto-save it removes my extension.
I'm adding in my extension with the content_script via java inject. and appending to the compose iframe.
Any help would be appreciated :)
You have to track DOM changes and re-add your code after the auto-save. There is another answer that gives a quick intro to DOMNodeInserted events. You should be able to watch for the Draft saved at ... insert.

Resources