Created
January 4, 2024 08:17
-
-
Save geor-kasapidi/276c3258ad40c7888951a5cd6be68a25 to your computer and use it in GitHub Desktop.
mangalib script to download images and open next chapter
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
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