Chrome DevTools: Copy an element into your clipboard with this keyboard only workflow
Last updated: 17th June 2020You can get any element into your clipboard with this keyboard only workflow. In the Console Panel, try this:
copy(document.body)
This also works for JavaScript objects, for example:
copy({
my: 'object'
})