Used 'Slow 4G' network throttling to intentionally cause failures for demonstration purposes!
Usage.mp4
Download manga from the following sources as zip archives 📦
- Search for the manga you want to download.
- Press
打包下載
- Coffee break ~ ☕
- Return to find your manga in the
~/Downloads
folder
<C-o>
- Open sidebar menu (same as clicking the floating menu ball)<C-q>
- Close sidebar menu (same as clicking the cross)
Browser | Tampermonkey |
---|---|
Chromium | 5.3.0 |
This script uses the Fetch API and GM_xmlhttpRequest
to send HTTP requests and receive payloads as ArrayBuffers
. It then packages these ArrayBuffers
into a ZIP file using JSZip and saves the file to your computer using FileSaver.js.
Payloads of returned requests are presumably stored in the RAM, NOT on your hard disk. In order to prevent the script from creating an ArrayBuffer
larger than the memory allocation the tab holds, the cap is hardcoded to 512 * 2^30
, roughly around 0.5 GB.
When that limit is exceeded, a new JSZip object is created and the previous ones are saved on the fly (interval being 500ms).