Hacker News new | past | comments | ask | show | jobs | submit login

console.copy is pretty useful to copy stuff to clipboard.



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...

[2] https://developer.chrome.com/devtools/docs/console-api


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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: