soundyogi soundyogi - 1 year ago 167
Javascript Question

chrome-devtools snippets import/export 2016

Today I wanted to export my snippets from chrome.

I found Information from 2013:

I opened the DevTools
-> to sperate Window
-> Inspect the Devtools Itself

Then in Console:

->var stringifiedSnippets = localStorage.getItem('scriptSnippets');

I tested Chrome 48 (windows), Chromium 45(ubuntu) and a Friends Chrome on his Macbook.
How can I access my Snippets.

Has the API changed? Or am I making a mistake here.

Answer Source

Yes, the internals have changed. Your code should change to the following:

InspectorFrontendHost.getPreferences(function(prefs) {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download