Skip to content

Instantly share code, notes, and snippets.

@seeya
Created June 21, 2018 16:50
Show Gist options
  • Save seeya/2cf601d42e14b4c437dfa94e5cb4aec0 to your computer and use it in GitHub Desktop.
Save seeya/2cf601d42e14b4c437dfa94e5cb4aec0 to your computer and use it in GitHub Desktop.
watchanimeonline.me link extractor
// Example: http://watchanimeonline.me/megalo-box-sub/
// Paste code snippet in developer console
// Ensure CORS enabled
const base = "http://watchanimeonline.me/wp-content/themes/magxp/film/getlink.php?link=";
$(".les-content").eq(0).find("span").each(async function(i) {
let id = $(this).data("link");
let response = await $.get(`${base}${id}`);
let showName = response.split("&title=")[1].split(' sandbox')[0];
let r = await $.get($(response).attr("src"));
let dlLink = r.split("sources:[{file: '")[1].split("',")[0];
console.log(`${dlLink}#name=${showName}.mp4`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment