Re:Chrome’s Console API: Greatest Hits
by gprasanth on Friday April 03, 2015 @08:16AM
(#9315430)
console.copy is pretty useful to copy stuff to clipboard.
[ Parent
| on HN ]
Didn't know about that, thanks!
Note though it's not `console.copy` but `copy`; it's a part of Command Line API [1] which is not the same as Console API [2] - command line API is not accessible from JS of the page.
[1] https://developer.chrome.com/devtools/docs/commandline-api#c...
Re:Chrome’s Console API: Greatest Hits
by ndesaulniers on Friday April 03, 2015 @12:24PM
(#9316749)
Looks like there's also:
* console.watch & console.unwatch
* console.timeline & console.timelineEnd
* console.timeStamp, console.time, console.timeEnd
* console.markTimeline
* console.groupCollapsed
* console.exception
In Firefox Nightly. A few of the timeline ones don't seem to work just yet, as the timeline is currently being prototyped in Nightly.
in Aurora (Fx39), profile/time tools create profiles and marks on the timeline, but nightly (Fx40) has a combined tool and the profile/profileEnd commands landing soon
watch/unwatch are from Object.prototype, confusingly enough!