您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Autoly download all manga pictures when you open a page of every chapter on hanascan.com.
// ==UserScript== // @name Hanascan自动获取漫画图源 // @description Autoly download all manga pictures when you open a page of every chapter on hanascan.com. // @version 1.0α // @author Tinyblack // @namespace http://tampermonkey.net/ // @namespace http://gf.qytechs.cn/ // @include *://hanascan.com/* // @require https://code.jquery.com/jquery-3.5.1.min.js // @grant none // ==/UserScript== (function(){ //Get page url var web = window.location.href; //import Jquery function importjquery() { var ele = document.createElement("script"); ele.setAttribute("type", "text/javascript"); ele.setAttribute("src", "https://code.jquery.com/jquery-3.5.1.min.js"); document.head.appendChild(ele); } importjquery(); //Special Thanks to 岁末Zzz's download code , remade by Tinyblack //Origin page link : https://blog.csdn.net/weixin_43953710/article/details/90288971 function download(url ,filename){ var x=new XMLHttpRequest(); x.open("GET", url , true); x.responseType = 'blob'; x.onload=function(e){ var url = window.URL.createObjectURL(x.response); var a = document.createElement('a'); a.href = url; a.download = filename; a.click(); }; x.send(); } //if this page is a manga chapter page if(web.match("hanascan.com/read") !== null) { console.log("is hanascan/read"); if(web.match("chapter") !== null) { console.log("is chapter") //Start download window.alert("Auto Download will run soonly."); var pic = 1; $("div.chapter-content").find('img').each(function(){ console.log("Picture " + pic + '.jpg is downloading url:' + $(this).attr('src')); download($(this).attr('src') , pic + '.jpg'); pic++; }); } } else{ console.log("not a hanascan chapter page"); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址