您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Manga downloader for urasunday.com
当前为
// ==UserScript== // @name UrasundayDownloader // @namespace https://urasunday.com/ // @version 0.2 // @description Manga downloader for urasunday.com // @homepage https://github.com/Timesient/manga-download-scripts // @author Timesient // @license GPL-3.0 // @match https://urasunday.com/title/* // @require https://unpkg.com/[email protected]/dist/axios.min.js // @require https://unpkg.com/[email protected]/dist/jszip.min.js // @require https://unpkg.com/[email protected]/dist/FileSaver.min.js // @require https://gf.qytechs.cn/scripts/451810-imagedownloaderlib/code/ImageDownloaderLib.js?version=1124333 // @grant GM_xmlhttpRequest // ==/UserScript== (async function(axios, JSZip, saveAs, ImageDownloader) { 'use strict'; // get title const title = document.querySelector('body > div.title > div:nth-child(1) > div:nth-child(1)').textContent.trim(); // get image urls from document const urls = await new Promise(resolve => { GM_xmlhttpRequest ( { method: 'GET', url: window.location.href, 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' }, onload: res => resolve(res.response.match(/src: '.*'/gm).map(url => url.split('\'')[1])) }); }); // setup ImageDownloader ImageDownloader({ getImagePromises, title, cssVerticalDistance: 'top: 160px' }); // collect promises of image function getImagePromises() { return urls.map(url => axios.get(url, { responseType: 'blob' }).then(res => res.data)); } })(axios, JSZip, saveAs, ImageDownloader);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址