PopupVideo
PopupVideo copied to clipboard
[Feature request] Maintain video position and play automatically
When you open a video that's already playing on YouTube the PopUp video should start playing automatically from that position and pause the original video.
Related issue:
- https://github.com/ettoolong/PopupVideo/issues/10
I know a bit of JavaScript but I don't have any experience with browser extensions. I'm willing to help if I get some guidance (where to start) or willing to sponsor the work for this.
Hi @Luxian ,
You can use document.querySelector('video'), to find the video element Call play or pause to play/pause video. Set autoplay parameter in popup's URL NOTE: Firefox maybe block this behavior, see this
Parse the YouTube time parameter ( ?t= ) from URL and carry it to popup's URL