Re:Show HN: A curated list of Chrome DevTools tips and tricks
by heffo on Wednesday October 08, 2014 @11:29AM
(#8427409)
The copy to a clipboard has a few elements to it.
1. If you right click on an object in the console, you can store it as a global variable. This makes an exact copy of the object that is in the global scope.
2. They used $_ which is a shortcut to get the result of the last command. So in the example, temp9 was the last command, so $_ is a copy of temp9
3. The important bit is the copy(var) call. This will copy any var into your clipboard!
1. If you right click on an object in the console, you can store it as a global variable. This makes an exact copy of the object that is in the global scope.
2. They used $_ which is a shortcut to get the result of the last command. So in the example, temp9 was the last command, so $_ is a copy of temp9
3. The important bit is the copy(var) call. This will copy any var into your clipboard!
Hopefully this was helpful!