Skip to content

Instantly share code, notes, and snippets.

@geor-kasapidi
Created January 4, 2024 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geor-kasapidi/276c3258ad40c7888951a5cd6be68a25 to your computer and use it in GitHub Desktop.
Save geor-kasapidi/276c3258ad40c7888951a5cd6be68a25 to your computer and use it in GitHub Desktop.
mangalib script to download images and open next chapter
async function xxx() {
for (page of window.__pg) {
const blob = await fetch(window.__info.servers[window.__info.img.server] + window.__info.img.url + page.u).then(res => res.blob());
const blob_url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = blob_url;
a.download = window.__info.current.number + '_' + page.u;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}
window.location = window.__info.next.url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment