Greasy Fork is available in English.

Image Downloader

Images can be extracted and batch downloaded from most websites. Especially for websites the right click fails or image can not save. Extra features: zip download / auto-enlarge image. See the script description at info page (suitable for chrome/firefox+tampermonkey)

< Feedback on Image Downloader

Review: Good - script works

§
Posted: 28-10-2023

大佬你好,我想问一下,可以改图片最后的数字吗?比如对应的第一张,原来的是某某某-0,我想改成某某某-1,怎么改呢?(完全不懂的小白)

§
Posted: 29-10-2023

第934行 原本是某某某-0

saveAs(imgWaitDownload[i],`${saveFileName}-${i}`);

改成

saveAs(imgWaitDownload[i],`${saveFileName}-${parseInt(i) + 1}`);

文档名变某某某-1
或改成

saveAs(imgWaitDownload[i],`${saveFileName}-${String(parseInt(i) + 1).padStart(4, "0")}`);

文档名变某某某-0001

第950行

let filename = `${saveFileName}-${index}.${fileExt}`;

改成

let filename = `${saveFileName}-${parseInt(index) + 1}.${fileExt}`;

或改成

let filename = `${saveFileName}-${String(parseInt(index) + 1).padStart(4, "0")}.${fileExt}`;

padStart(4, "0")的4改成3变成某某某-001,改成2变成某某某-01

§
Posted: 30-10-2023

啊啊啊非常感谢您的解答!!!!我已解决问题!!!谢谢!!!

第934行 原本是某某某-0

saveAs(imgWaitDownload[i],`${saveFileName}-${i}`);

改成

saveAs(imgWaitDownload[i],`${saveFileName}-${parseInt(i) + 1}`);

文档名变某某某-1
或改成

saveAs(imgWaitDownload[i],`${saveFileName}-${String(parseInt(i) + 1).padStart(4, "0")}`);

文档名变某某某-0001

第950行

let filename = `${saveFileName}-${index}.${fileExt}`;

改成

let filename = `${saveFileName}-${parseInt(index) + 1}.${fileExt}`;

或改成

let filename = `${saveFileName}-${String(parseInt(index) + 1).padStart(4, "0")}.${fileExt}`;

padStart(4, "0")的4改成3变成某某某-001,改成2变成某某某-01

Post reply

Đăng nhập để bình luận