https://github.com/mccranky83/byw-mangadl
油猴脚本,批量打包下载 zero搬运网 蚂蚁搬运网单行本漫画。Manga Batch Download Userscript.
https://github.com/mccranky83/byw-mangadl
downloader hoarding manga manga-downloader userscript
Last synced: 5 months ago
JSON representation
油猴脚本,批量打包下载 zero搬运网 蚂蚁搬运网单行本漫画。Manga Batch Download Userscript.
- Host: GitHub
- URL: https://github.com/mccranky83/byw-mangadl
- Owner: Mccranky83
- Created: 2024-09-17T07:10:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-29T12:58:15.000Z (5 months ago)
- Last Synced: 2024-12-07T06:07:22.744Z (5 months ago)
- Topics: downloader, hoarding, manga, manga-downloader, userscript
- Language: JavaScript
- Homepage:
- Size: 3.72 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# byw-manga downloader
> Used 'Slow 4G' network throttling to intentionally cause failures for demonstration purposes!
Download manga from the following sources as zip archives :package:
- [zerobyw](https://zerobyw.github.io/)
- [antbyw](https://antbyw.github.io/)## Preview

## Installation
- [Download from GitHub](https://github.com/Mccranky83/byw-mangadl/raw/main/byw-mangadl.user.js)
- [Download from GreasyFork](https://update.greasyfork.org/scripts/512076/byw%E6%BC%AB%E7%95%AB%E4%B8%8B%E8%BC%89.user.js)## Usage
1. Search for the manga you want to download.
2. Press `打包下載`
3. Coffee break ~ :coffee:
4. Return to find your manga in the `~/Downloads` folder### Keyboard Shortcuts
- `` - Open sidebar menu (same as clicking the floating menu ball)
- `` - Close sidebar menu (same as clicking the cross)## Development Environment
| Browser | [Tampermonkey](http://tampermonkey.net/) |
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [Chromium](https://github.com/ungoogled-software/ungoogled-chromium-macos/releases/tag/129.0.6668.89-1.1) | [5.3.0](https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo) |## 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](https://github.com/Stuk/jszip) and saves the file to your computer using [FileSaver.js](https://github.com/eligrey/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).