YouTubePopoutPlayer icon indicating copy to clipboard operation
YouTubePopoutPlayer copied to clipboard

Get Video ID from DOM

Open rthaut opened this issue 5 years ago • 0 comments

This PR adds logic to get the Video ID from the DOM when the ID cannot be parsed from the <video> element or from the window.location.

Currently this only checks the "canonical" and "shortlinkUrl" <link> tags, but those are probably the most reliable, since they are common best practices and are not really subject to DOM structure changes.

rthaut avatar Nov 20 '20 02:11 rthaut