Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is chrome extension's 'chrome.storage.local' data saved?

I can find the previous localStorage api data in ~/.config/google-chrome/Default/Local Storage directory. I see that these are sqlite files which I can browse with sqlite3.

However, I'm moving from localStorage api to chrome.storage api and saving the information with chrome.storage.local method.

Now, how and where are these files are bing saved in my file system? I can't seem to find any information regarding this in their doc. Any help would be highly appreciated.

like image 785
QuestionEverything Avatar asked Jul 21 '13 17:07

QuestionEverything


People also ask

Where is Chrome data stored locally?

Windows. The default location is in the local app data folder: [Chrome] %LOCALAPPDATA%\Google\Chrome\User Data.

Where is the Local Storage of Chrome in Windows?

In chrome browser we can see the contents of localStorage by opening Developer tools > Application > Local Storage.

Where is browser Local Storage located?

Where is localStorage stored? Firefox saves storage objects in an SQLite file called webappsstore. sqlite , which is also located in the user's profile folder.

Does Chrome support Local Storage?

Google Chrome/ChromiumChrome treats cookies and local storage as the same thing, so these steps work for both. Click on the menu button in the top-right corner of your Chrome window. Select “Settings” from that menu. Click “Cookies and site permissions”.


1 Answers

For Windows, you can find different data related to your extension [extension_id] at these places

C:\Users\[user_name]\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\[extension_id]

C:\Users\[user_name]\AppData\Local\Google\Chrome\User Data\Default\Sync Extension Settings\[extension_id]

C:\Users\[user_name]\AppData\Local\Google\Chrome\User Data\Default\IndexedDB\chrome-extension_[extension_id]

want to checkout chrome.storage data

  • open developer tools pointing your background page
  • type command

    chrome.storage.sync.get(null, function (data) { console.info(data) });

    or

    chrome.storage.local.get(null, function (data) { console.info(data) });

like image 185
Rohit Nandi Avatar answered Oct 11 '22 12:10

Rohit Nandi