Skip to content

Instantly share code, notes, and snippets.

@hisaac
Last active November 21, 2023 14:05
Show Gist options
  • Save hisaac/a3728ed15a22a20fa5fa42f0d042bb44 to your computer and use it in GitHub Desktop.
Save hisaac/a3728ed15a22a20fa5fa42f0d042bb44 to your computer and use it in GitHub Desktop.
// The bookmarklet does a couple things:
// If the current page in the browser is a YouTube page, it will open that video in `invidious.xyz`
// If the current page in the browser is _not_ a YouTube page, it will open the `invidious.xyz` homepage
//
// To use: Copy/Paste the code below into the bookmark's address:
javascript:location.hostname.includes("youtube.com")?location.assign("https://invidious.xyz"+location.pathname+location.search+location.hash):location.assign("https://invidious.xyz");
@TangentFoxy
Copy link

Thank you!

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