4 ms·
console.copy is pretty useful to copy stuff to clipboard.
by gprasanth 12y ago
console.copy is pretty useful to copy stuff to clipboard.
- jakub_g 12y agoDidn'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#copyobject https://developer.chrome.com/devtools/docs/commandline-api#c... [2] https://developer.chrome.com/devtools/docs/console-api https://developer.chrome.com/devtools/docs/console-api
- ndesaulniers 12y agoLooks 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.
- jsantell 12y agoin 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!