Skip to content

Commit f60428e

Browse files
committed
[devtools-snippet] add jumpToEndOfVideo.js
1 parent 8ea63ad commit f60428e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

devtools-snippets/jumpToEndOfVideo.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// jumpToEndOfVideo.js
2+
// https://github.com/0xdevalias/userscripts/tree/main/devtools-snippets
3+
// Sets the current time of all video elements to their respective duration (end time)
4+
5+
Array.from($$('video')).forEach(videoElement => {
6+
videoElement.currentTime = videoElement.duration;
7+
console.log(videoElement.currentTime);
8+
})

0 commit comments

Comments
 (0)