seek to last 10s
javascript:(function(){document.querySelectorAll('video').forEach(v=>{if(v.duration&&!isNaN(v.duration)){v.currentTime=Math.max(0,v.duration-10);v.play();}});})();
Pause all videos , using video.pause()
javascript:(function(){const videos=document.querySelectorAll('video');videos.forEach(v=>v.pause());})();
Fire a event ==pause== to all video
javascript:(function(){document.querySelectorAll('video').forEach(v=>v.dispatchEvent(new Event('pause')));})();
Fire a event ==ended== to all video
javascript:(function(){document.querySelectorAll('video').forEach(v=>v.dispatchEvent(new Event('ended')));})();
Top comments (0)