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).
97
+
*[remove-all-but.js](remove-all-but.js) - removes all elements in the page, except the ones in
98
+
the trees with specified selectors. Can be used to quickly clean up the page and leave just the essentials.
97
99
98
100
All snippets, including mine are distributed under MIT license.
99
101
@@ -102,6 +104,9 @@ All snippets, including mine are distributed under MIT license.
102
104
You can update local code snippets by downloading new versions from this github repository.
103
105
Create a new code snippet and copy the source from [update-code-snippets.js](update-code-snippets.js).
104
106
107
+
Note: the approach below does not work any more,
108
+
see [the open issue](https://github.com/bahmutov/code-snippets/issues/23).
109
+
105
110
You will run this code snippet in an unusual way. First, open any web page, even an empty tab.
106
111
Open the DevTools in **undocked** mode (Command+Option+I on Mac). Then open the DevTools **again**,
107
112
*while focused* on the first DevTools. This will open the second DevTools instance with the source for the
0 commit comments