Skip to content

Instantly share code, notes, and snippets.

View luckycdev's full-sized avatar
🥶
hi

lucky luckycdev

🥶
hi
View GitHub Profile
// 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");
@luckycdev
luckycdev / bookmarklet-unblock-youtube-invidious.js
Last active December 13, 2022 17:07 — forked from gvenk/convert-all-youtube-urls-to-nocookie-bookmarklet.js
Unblock any youtube link with an https://redirect.invidious.io/ link. Default = vid.puffyan.us - easily changeable
javascript:var a="https://vid.puffyan.us";if(location.hostname==="www.youtube.com"){location.assign(a+location.pathname+location.search);}else if(location.hostname==="youtu.be"){location.assign(a+location.pathname+location.search);}else if(location.hostname==="www.youtube-nocookie.com"){location.assign(a+location.pathname+location.search);}else{alert("not on youtube");}