Skip to content

Improve bookmarklet to handle /shorts/ and /live/ and avoid navigating to null url#836

Open
FlaminSarge wants to merge 2 commits intoHolodexNet:devfrom
FlaminSarge:bookmarklet
Open

Improve bookmarklet to handle /shorts/ and /live/ and avoid navigating to null url#836
FlaminSarge wants to merge 2 commits intoHolodexNet:devfrom
FlaminSarge:bookmarklet

Conversation

@FlaminSarge
Copy link
Copy Markdown
Contributor

Adds support for URLs formatted as https://youtube.com/live/VIDEOID or https://youtube.com/shorts/VIDEOID.
Preserves other URL parameters e.g. start/end/t.
Avoids navigating if it can't find a video id to navigate to.

Should also cherry-pick cleanly onto next branch.

@FlaminSarge
Copy link
Copy Markdown
Contributor Author

I've been running this bookmarklet for over a year at this point and haven't had any cases come up where it breaks yet. If anyone can think of any cases where it wouldn't work right, let me know, or if I should make this PR against next instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant