Where does Chrome store data for extensions in Development Mode? - google-chrome-extension

I am developing a Chrome extension, which writes and fetches data from chrome.storage.local
I load it into Chrome in "Developer Mode"
When I look in /Users/raphisama/Library/Application Support/Google/Chrome/Default, I don't see the extension hash for the extension I am developing.
How do I clear the data that the extension has stored? Where is this data kept?
So far I've managed to do this only with removing and reloading the extension, but I'd prefer a simpler way

Related

How to take data from a website's applications > localStorage using storage api to extension in chrome extension

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.

How protect chrome extension of reupload

Everybody can download chrome extension, edit and reupload, how i can protect my chrome extension and what i need to do if i see someone reupload my chrome extension?
You can't bulletproof-protect it. The only thing you can reasonably guarantee to be unique is the extension ID for published items - but any checks you would do against it can be circumvented.
It's not a technical problem. It's a social/legal problem.
If you see someone doing it, you should use the Report Abuse function of the Web Store.
What other does is to load the "actual" code of their extension remotely (via CDN)
The code that is packaged with chrome extension just act as loader or their "real" extension code.
See Streak's InboxSDK (sdk to build chrome extensions for gmail). It uses the same concept. https://www.inboxsdk.com/docs/

chrome extension auto-update strategy

I want to update my chrome extensions automatically or via command line. These could be archived using Autoupdating, but only for hosted extension. Autoupdating is not supported for extension hosted in Chrome Web Store. Manual updating through web portal is very tiring.
It is possible to use directly linking js file to external web site, but it will not work for offline use case. We could add appcache to background page, but will that work?
An desperate approach is store js files in indexedDB and inject it.
Is there any better solution?

Chrome extension deployment

I have developed a chrome extension and i always use developer mode to debug. Now I want to deploy it. Is there a way to install extension per chrome profile? and I wonder how to get the extension id?
1:extension ID can be found at chrome://extensions.like this:
2:I have no idea about your words "install extension per chrome profile". any way, if you want to use your chrome extension without developer mode. just use the"pack extension" button in the chrome extension page. you will get a crx file. to install it, just drag and drop it in you chrome.
you can also publish it to chorme web store. see here. then you and any other could easily install your extension frome chrome web store.
Firstly to deploy your extension on web store you must have google developer account which costs $5.
Secondly the chrome extension id which you see while developing extension in your pc is different from what you will get when you have deployed your extension on chrome store.
Basically when you deploy your extension,chrome store ask you to upload the zip of your extension folder not the crx file.Also note that it will not give you any .pem file like you will get when you pack your extension locally.Chrome store will maintain the same extension id on each updation.
Note that you cannot update the extension with the same version.You must increment the version number on each updation,otherwise chrome will show error on updation.

Google Chrome Extension User-Specific Bookmarking

I am currently developing a Chrome Extension that allows bookmarking and browser settings user-specific in a local computer.
Part of the scope of the extension is to store the bookmarks and the settings in a file stored locally in the computer.
I already am capable of writing files in Chrome using the NPAPI plugin.
How do I:
Store and retrieve the bookmarked sites locally.
Disable chrome's default loading of bookmarks and let chrome load bookmarks of users generated from my extension.

Resources