Skip to content

Instantly share code, notes, and snippets.

@luckycdev
Last active April 27, 2022 18:29
Show Gist options
  • Save luckycdev/b737c33cbfc0ef3d6cc1e942722d09bb to your computer and use it in GitHub Desktop.
Save luckycdev/b737c33cbfc0ef3d6cc1e942722d09bb to your computer and use it in GitHub Desktop.
search for an anime on gogoanime with a bookmarklet - easily changeable - gogoanime bookmarklet

Search gogoanime with a bookmarklet, easily changeable link, change where it says var a="https://gogoanime.be/search/?keyword=";

you might have to adjust the url to what the url is when searching if using a different link


Code:

javascript:
var a="https://gogoanime.be/search/?keyword=";
var b=prompt("What anime would you like to watch today?", "Naruto");
if(b==="")
{
alert("invalid response");
}
else if(b===" ")
{
alert("invalid response");
}
else if(b!=null)
{
open(a+encodeURI(b));
}

Bookmarklet:

javascript:var a="https://gogoanime.be/search/?keyword="; var b=prompt("What anime would you like to watch today?", "Naruto"); if(b===""){alert("invalid response");}else if(b===" "){alert("invalid response");}else if(b!=null) {open(a+encodeURI(b));}
javascript:var a="https://gogoanime.be/search/?keyword="; var b=prompt("What anime would you like to watch today?", "Naruto"); if(b===""){alert("invalid response");}else if(b===" "){alert("invalid response");}else if(b!=null) {open(a+encodeURI(b));}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment