Skip to content

Instantly share code, notes, and snippets.

@seeya
Created January 19, 2019 05:25
Show Gist options
  • Save seeya/9b01bc7efee647ab2e7123552faac69a to your computer and use it in GitHub Desktop.
Save seeya/9b01bc7efee647ab2e7123552faac69a to your computer and use it in GitHub Desktop.
Extract streammango links from 9anime. This is meant to be used using chrome. Open the developer console and dump this code in while you're in a anime page. Example https://www2.9anime.to/watch/fairy-tail.n48/j76vm3
var links = [];
$(".server").each(function() {
if($(this).data("name") == 34) {
$(this).find("a").each(function() {
const id = $(this).data("id");
links.push(`https://www2.9anime.to/ajax/episode/info?id=${id}`);
});
}
});
function getLink() {
const l = links.pop();
$.get(l, function(data) {
console.log(data.target)
});
if(links.length != 0)
getLink();
}
getLink();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment