Last active
April 19, 2016 07:33
-
-
Save fjenett/0e1da35e61aeee523c653adc4b39cdb6 to your computer and use it in GitHub Desktop.
DevTools Snippets to/from LocalStorage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// when inspecting the inspector ... | |
// http://stackoverflow.com/questions/12291138/how-do-you-inspect-the-web-inspector-in-chrome#12291163 | |
// in the console | |
// run this to move snippets into localStorage | |
InspectorFrontendHost.getPreferences(_ => window.localStorage.setItem('snippetsBackup',_.scriptSnippets)); | |
// run this to restore them again | |
InspectorFrontendHost.setPreference("scriptSnippets", window.localStorage.getItem('snippetsBackup')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment