Skip to content

Instantly share code, notes, and snippets.

@TangentFoxy
Forked from hisaac/invidious-bookmarklet.js
Last active August 17, 2023 06:52
Show Gist options
  • Save TangentFoxy/aa91f2726a067dc459d5065fad839e3e to your computer and use it in GitHub Desktop.
Save TangentFoxy/aa91f2726a067dc459d5065fad839e3e to your computer and use it in GitHub Desktop.
Modified for personal use. Points to my own domain.
// 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.tangentfox.com"+location.pathname+location.search+location.hash):location.assign("https://invidious.tangentfox.com");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment