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:
Related
I am working on a url filtering chrome extension, I want to download a webpage to my extension folder so that extension can access it even without connection to my server. Is it doable?
woxxom provided the answer in a comment:
Not possible. Keep it in the storage.
I am pretty much new to chrome extension programming. I have a website which stores data in the localStorage tab of chrome debug tools under Applications with a key of activities. I want to access this into my custom made chrome extension and use it to download that data as a file. Please guide me. Any help is appreciated.
I am extremely confused by popup, background script, content script, etc.
P.S. The data is not stored by me, it is stored by the website I am trying to use this extension on.
I have an extension in Chrome Webstore I would like to download original files that used to be uploaded. Is there any direct way to download it straight from the store, since I am the creator and I do have access to my account?
You can download the current / past version of an extension on https://chrome-stats.com/. You can also just inspect the source code directly on that website.
I have created a chrome extension to learn English that build a dictionary with source/translation, etc.
Now, I want to send this "file" (I will/would build a "file" with the dictionary entries) to Google Drive and use this file in my Android app.
But I want to save this file not on my personal Drive account, but in the Drive of the current user, the user who uses the chrome extension (if this user has a Drive account, of course).
In all the examples I found, they define the OAuth for "my" account ("my" = the chrome developer in the manifest.json, so, static).
Is there a way to save in the drive of the user?
Use the 'chrome.storage' API to store, retrive and track changes to user data.
Please refer to the link:
https://developer.chrome.com/extensions/storage
I have this website which I frequently visit to lookup a German language word meanings in English. I want to save the text from each webpage I visit of the site in a json file by highlighting it. How do I go about doing this? Which api of google chrome extension should I refer to?
Also will a firefox addon be faster to learn and develop? I have some programming exp in html, JS and CSS.
If you just need to store data between browser restarts then take a look at LocalStorage API. If you actually need to create a file there is a FileSystem API, but it has its limitations and not very easy to use.
Chrome extensions are much easier to learn and create than Firefox.
I would use pure HTML5 web storage.
Its already been answered here:
https://stackoverflow.com/questions/1194784/which-browsers-support-html5-offline-storage
- or take a look for more reference in most HTML5 tutorials:
http://diveintohtml5.ep.io/storage.html
http://www.webreference.com/authoring/languages/html/HTML5-Client-Side/
http://www.w3schools.com/html5/html5_webstorage.asp