Skip to content

油猴脚本,批量打包下载 zero搬运网 蚂蚁搬运网单行本漫画。Manga Batch Download Userscript.

Notifications You must be signed in to change notification settings

Mccranky83/byw-mangadl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

byw-manga downloader

Used 'Slow 4G' network throttling to intentionally cause failures for demonstration purposes!

Usage.mp4

Download manga from the following sources as zip archives 📦

Preview

Sidebar menu

Installation

Usage

  1. Search for the manga you want to download.
  2. Press 打包下載
  3. Coffee break ~ ☕
  4. Return to find your manga in the ~/Downloads folder

Keyboard Shortcuts

  • <C-o> - Open sidebar menu (same as clicking the floating menu ball)
  • <C-q> - Close sidebar menu (same as clicking the cross)

Development Environment

Browser Tampermonkey
Chromium 5.3.0

How It Works

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.

Warning

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).

About

油猴脚本,批量打包下载 zero搬运网 蚂蚁搬运网单行本漫画。Manga Batch Download Userscript.

Topics

Resources

Stars

Watchers

Forks