How do I view the storage of a Chrome Extension I've installed?

后端 未结 6 571
心在旅途
心在旅途 2021-01-30 10:12

It seems like it should be possible to view the localStorage/chrome.storage of Chrome Extensions installed on my browser. I\'ve played around with the

6条回答
  •  情歌与酒
    2021-01-30 10:46

    This was actually two questions!

    1. How do I view localStorage of a Chrome Extension I've installed?

    Open the Chrome Devtool by clicking on the background page of an extension in Chrome://extensions/ (Developer mode needs to be checked to see background pages), then in resource panel you can see the local storage on the left. (by chaohuang and Kil)

    1. How do I view chrome.storage of a Chrome Extension I've installed?

    In the same console of the background page:

    • For storage.local (by mwkwok)

    chrome.storage.local.get(function(result){console.log(result)})

    • For storage.sync

    chrome.storage.sync.get(function(result){console.log(result)})

提交回复
热议问题