你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/455860-mangaboxdownloader/discussions/305448,源站連結 點此以跳轉。
Manga downloader for www.mangabox.me
< 脚本 MangaboxDownloader 的反馈
mangabox修复// ==UserScript==// @name MangaboxDownloader// @namespace https://github.com/Timesient/manga-download-scripts// @version 0.6// @license GPL-3.0// @author Timesient// @description Manga downloader for www.mangabox.me// @icon https://image-a.mangabox.me/static/assets/favicon.ico// @match https://www.mangabox.me/reader/*/episodes/*// @require https://unpkg.com/jszip@3.7.1/dist/jszip.min.js// @require https://unpkg.com/file-saver@2.0.5/dist/FileSaver.min.js// @require https://update.greasyfork.org.cn/scripts/451810/1398192/ImageDownloaderLib.js// @grant GM_xmlhttpRequest// @grant GM_info// ==/UserScript==(function(JSZip, saveAs, ImageDownloader) { 'use strict'; // 获取图片URL const getImageURLs = () => new Promise(resolve => { GM_xmlhttpRequest({ method: 'GET', url: window.location.href, responseType: 'text', headers: { 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', 'Referer': 'https://www.mangabox.me/' }, onload: res => { const urls = res.response.match(/https:\/\/image-a.mangabox.me\/static\/content\/reader\/\d+\/[a-z0-9]{64}\/sp\/\d+\.(jpg|png)\?t=\d{10}/g); resolve(urls || []); } }); }); // 初始化下载器 getImageURLs().then(urls => { const title = document.querySelector('body > header > h2')?.innerText || 'manga'; ImageDownloader.init({ maxImageAmount: urls.length, getImagePromises: (s, e) => urls.slice(s-1, e).map(url => new Promise(resolve => GM_xmlhttpRequest({ method: 'GET', url: url, responseType: 'arraybuffer', headers: {'Referer': window.location.href}, onload: res => resolve(res.response) }) ) ), title: title }); });})(JSZip, saveAs, ImageDownloader);
登录以发布留言。
mangabox修复
// ==UserScript==
// @name MangaboxDownloader
// @namespace https://github.com/Timesient/manga-download-scripts
// @version 0.6
// @license GPL-3.0
// @author Timesient
// @description Manga downloader for www.mangabox.me
// @icon https://image-a.mangabox.me/static/assets/favicon.ico
// @match https://www.mangabox.me/reader/*/episodes/*
// @require https://unpkg.com/jszip@3.7.1/dist/jszip.min.js
// @require https://unpkg.com/file-saver@2.0.5/dist/FileSaver.min.js
// @require https://update.greasyfork.org.cn/scripts/451810/1398192/ImageDownloaderLib.js
// @grant GM_xmlhttpRequest
// @grant GM_info
// ==/UserScript==
(function(JSZip, saveAs, ImageDownloader) {
'use strict';
// 获取图片URL
const getImageURLs = () => new Promise(resolve => {
GM_xmlhttpRequest({
method: 'GET',
url: window.location.href,
responseType: 'text',
headers: {
'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
'Referer': 'https://www.mangabox.me/'
},
onload: res => {
const urls = res.response.match(/https:\/\/image-a.mangabox.me\/static\/content\/reader\/\d+\/[a-z0-9]{64}\/sp\/\d+\.(jpg|png)\?t=\d{10}/g);
resolve(urls || []);
}
});
});
// 初始化下载器
getImageURLs().then(urls => {
const title = document.querySelector('body > header > h2')?.innerText || 'manga';
ImageDownloader.init({
maxImageAmount: urls.length,
getImagePromises: (s, e) => urls.slice(s-1, e).map(url =>
new Promise(resolve =>
GM_xmlhttpRequest({
method: 'GET',
url: url,
responseType: 'arraybuffer',
headers: {'Referer': window.location.href},
onload: res => resolve(res.response)
})
)
),
title: title
});
});
})(JSZip, saveAs, ImageDownloader);