您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Tweaks the download script so that filenames follow %04d format
// ==UserScript== // @name hitomi.la Download Tweaker // @description Tweaks the download script so that filenames follow %04d format // @namespace redturtle // @author redturlte // @version 1.7 // @match https://hitomi.la/doujinshi/* // @match https://hitomi.la/manga/* // @match https://hitomi.la/cg/* // @match https://hitomi.la/gamecg/* // @noframes // @connect self // @run-at document-idle // ==/UserScript== $(document).ready(function () { download_gallery = function (galleryname) { $("#dl-button").hide(); var progressbar = $("#progressbar"); progressbar.show(); progressbar.progressbar({ value: false }); urls_to_download = []; image_names_to_download = []; $.each(galleryinfo['files'], function (i, image) { var url = url_from_url_from_hash(galleryid, image); urls_to_download.push(url); image_names_to_download.push((i + 1 < 10 ? '000' + (i + 1).toString() : i + 1 < 100 ? '00' + (i + 1).toString() : i + 1 < 1000 ? '0' + (i + 1).toString() : (i + 1).toString()) + image.name.substring(image.name.length - 4, image.name.length)); }); zip = new JSZip(); currently_downloading_url_index = 0; if (galleryname) { galleryname_to_download = galleryname; } download_next_image(); }; });