You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text, based on the blog post [Enforce standards while submitting a pull request](http://krasimirtsonev.com/blog/article/enforce-standards-while-submitting-a-pull-request) by [Krasimir Tsonev](https://github.com/krasimir).
94
+
85
95
All snippets, including mine are distributed under MIT license.
86
96
87
97
## Updating local code snippets
88
98
89
99
You can update local code snippets by downloading new versions from this github repository.
90
-
Create a code snippets and copy source from [update-code-snippets.js](update-code-snippets.js).
100
+
Create a new code snippet and copy the source from [update-code-snippets.js](update-code-snippets.js).
91
101
92
102
You will run this code snippet in an unusual way. First, open any web page, even an empty tab.
93
-
Open the DevTools in **undocked** mode (Command+Option+I on Mac). Then open the DevTools **again**,
103
+
Open the DevTools in **undocked** mode (Command+Option+I on Mac). Then open the DevTools **again**,
94
104
*while focused* on the first DevTools. This will open the second DevTools instance with the source for the
95
105
first DevTools panels. If you inspect the `localStorage` variable in the second DevTools window, you will
96
106
find lots of interesting stuff, including all the code snippets in the `localStorage.scriptSnippets` property.
97
107
98
108
Whenever you want to update the your local code snippets in the Chrome DevTools, execute the `update-code-snippets.js`
99
-
snippet in the second DevTools instance. The update script looks at the your current code snippets and
100
-
tries to download a file with same name from the code snippets github repository (via [RawGit][RawGit]).
101
-
If the remote file has been downloaded successfully, it will replace the snippet.
109
+
snippet in the second DevTools instance. The update script looks at the your current code snippets and
110
+
tries to download a file with same name from the code snippets github repository (via [RawGit][RawGit]).
111
+
If the remote file has been downloaded successfully, it will replace the snippet.
102
112
After all snippets are checked, reopen the DevTools to load the updated source code.
0 commit comments