Created
January 19, 2019 05:25
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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