/dev tips

(3) DevTools Copy as cURL DevTools Local modifications (5)

Chrome DevTools: DevTools - Run predefined snippets of code on any web page

15 Apr 2015
DevTools - Run predefined snippets of code on any web page

A feature called Snippets is present in the DevTools which allows you to save (orremove) bits of code which can be run on a webpage (it's just a bit more convenient than re-typing JavaScript code in the console panel). To try it:

You'll also notice it has multi-line editing and confirmation for exit-without-saving.

Snippets source: https://github.com/bgrins/devtools-snippets

Sign up to receive a developer tip, in the form of a gif, in your inbox each week.