Copy anything from Chrome dev console Narveer Rathore

Narveer wrote...

Copy anything from Chrome dev console

copy complex object from dev console, even those which aren't completely visible


Copy function in Chrome DevTools console

Ever wondered how to copy complete objects from the DOM or memory that aren't fully accessible due to truncation?

Use the copy utility from the console to copy the content into the clipboard.

copy(<object to copy>)

copy(window.document.head)

copy(document.body)

In addition, under the Elements Tab, you can right-click on any element, select "Store as global variable," and then copy it completely using the method mentioned above under the Console Tab.

    Tags: