0

I'm able to get the current time of a Youtube playing video via inserting this JavaScript command to the address bar:

javascript:alert(document.querySelector('video').currentTime);

What I'm looking for is to get this video current time value to clipboard instead of displaying it within an alert box.


I'm using Chrome.

1 Answer 1

1

Copying to clipboard is easiest done using a lightweight open-source Javascript library. clipboard.js and clipboard-js both work in my experience.

Not the answer you're looking for? Browse other questions tagged or ask your own question.