Code:
javascript:
var a="https://returnyoutubedislikeapi.com/votes?videoId=";
var b=location.search.split("v=")[1].split("&")[0];
if(location.hostname==="www.youtube.com")
{
open(a+b);
}
else if(location.hostname==="youtu.be")
{
open(a+b);
}
else if(location.hostname==="www.youtube-nocookie.com")
{
open(a+b);
}
Bookmarklet:
javascript:var a="https://returnyoutubedislikeapi.com/votes?videoId=";var b=location.search.split("v=")[1].split("&")[0];if(location.hostname==="www.youtube.com"){open(a+b);}else if(location.hostname==="youtu.be"){open(a+b);}else if(location.hostname==="www.youtube-nocookie.com"){open(a+b);}
only issue:cant figure out how to do at the end else{alert("not on youtube");} if not on youtube (check my unblock youtube gist to see what i mean)