vim, git, aws and other three-letter words

Software Development Notes

How to see the Chrome Extension storage

The extension storage is not displayed under the “Application” tab in Chrome DevTools, but it is possible to access it via the javascript console:

The chrome.storage.local is a StorageArea object and it has methods to get and set values.

We can also print the entire storage by passing the null to the get method with chrome.storage.local.get(null).then((data) => console.log(data)).

2023-06-13-chrome-extension-storage.png
Figure 1: extension storage access

The demo:

Tags: web