Skip to content

Instantly share code, notes, and snippets.

@luckycdev
Last active April 27, 2022 18:14
Show Gist options
  • Save luckycdev/80371b23f06a16106eb4c5364ee04960 to your computer and use it in GitHub Desktop.
Save luckycdev/80371b23f06a16106eb4c5364ee04960 to your computer and use it in GitHub Desktop.
Search YouTube using Invidious (a youtube unblocker) in a bookmarklet prompt - easily changeable Invidious link

If you want to search something on normal youtube: https://gist.github.com/luckycdev/26ca83ec305727973bce24d1479fe7ef Easily change the link used to any other invidious link (https://redirect.invidious.io/)

Code:

javascript:
var a="https://vid.puffyan.us/search?q=";
var b=prompt("What would you like to search on youtube(unblocked)?", "MrBeast");
if(b==="")
{
alert("invalid response");
}
else if (b===" ")
{
alert("invalid response");
}
else if (b!=null)
{
open(a+b);
}

Bookmarklet:

javascript:var a="https://vid.puffyan.us/search?q="; var b=prompt("What would you like to search on youtube(unblocked)?", "MrBeast"); if(b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null) {open(a+b);}
javascript:var a="https://vid.puffyan.us/search?q="; var b=prompt("What would you like to search on youtube(unblocked)?", "MrBeast"); if(b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null) {open(a+b);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment