Help us make DevTools Tips better! Fill out this survey to tell us more about your DevTools habits and frustrations.
Copy an object from the console
The console panel supports a very handy
copy() function that stringifies and copies anything you pass to it as an argument, so you can then paste it somewhere else.
copy($$('a').map(a => a.href).join('\n')) copies all of the links from the page.