Which file does Snippets of Chrome Dev Tool saved at?

前端 未结 5 1691
失恋的感觉
失恋的感觉 2021-01-02 08:29

As I know , personal data always be saved at profile path which can be find at chrome://version.

I added many snippets in my Chrome Dev Tool, and want to backup them

5条回答
  •  萌比男神i
    2021-01-02 09:02

    EDIT:This answer is Out of date, snippets are no longer saved in localstorage.

    Please see paulirish's answer.

    For older versions of chrome this might work. its stored here C:\Users\Webdev\AppData\Local\Google\Chrome\User Data\Default\Local Storage\chrome-devtools_devtools_0.localstorage. but I don't think you can view it from the file path,

    you can view it by doing the following. open up the devtools and then head to chrome://inspect, under the "OTHER" heading you should see the devtools panels url you just opened, the url starts with chrome-devtools://dev. inspect it by clicking the inspect link. a new devtools window should open, under the resources tab, go to localstorage there is a key called scriptSnippets, that's where its saved. just copy and paste it or use the console panel to modify the output beforehand.

    Hope this helps

提交回复
热议问题