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

后端 未结 6 592
心在旅途
心在旅途 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:56

    I didn't get any results using the provided code typed into console. But this code worked when put into the console.

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

    The difference here is that we pass a null value which will return all content in the storage. To back this up, and for additional reading, check out the official chrome page on this API.

提交回复
热议问题