DEV Community

Discussion on: Share a quick tip you learned about web dev this year

Collapse
 
vtrpldn profile image
Vitor Paladini • Edited

Oooh, I know a good one!

copy() on Chrome DevTools (other browsers probably) adds to your clipboard anything you use as an argument.

That gets really powerful when you use it with "Store as global variable". That way you can log a huge server response, for instance, and copy it from the Dev Tools console.

Here's an example:

image

Collapse
 
somedood profile image
Basti Ortiz

I use this all the time when I want to quickly do some web scraping on-the-fly. A little bit of Array#map chaining can easily automate what would have been million Ctrl + Cs.

Collapse
 
urielbitton profile image
Uriel Bitton • Edited

nice one! i'll remember this one :)

Thanks for sharing

Collapse
 
anasansari157 profile image
AnasAnsari

This is so cool