从Poipiku下载图片或文字
< 脚本 Poipiku下载器 的反馈
This code isn't works now, so here are the steps how to fix.Please locate the following code block (lines 295-305): $page .find(logined ? ".DetailIllustItemImage" : ".IllustItemThumbImg") .each(function () { const src = $(this).attr("src"); if (src && !/^\/img/.test(src)) { list.push(window.location.protocol + src); } });Please replace this code block with the following code:$page .find(logined ? ".DetailIllustItemImage" : ".IllustItemThumbImg") .each(function () { const src = $(this).attr("src"); if (src) { let normalizedSrc = src; if (src.startsWith("//")) { normalizedSrc = window.location.protocol + src; } else if (src.startsWith("/")) { normalizedSrc = window.location.origin + src; } list.push(normalizedSrc); } });
thank you very much!!!!
do you have a solution in case the page requires a password? it started working with you fix (thank you!) but not if it requires a password - the input field just disappeared
登录以发布留言。
This code isn't works now, so here are the steps how to fix.
Please locate the following code block (lines 295-305):
$page
.find(logined ? ".DetailIllustItemImage" : ".IllustItemThumbImg")
.each(function () {
const src = $(this).attr("src");
if (src && !/^\/img/.test(src)) {
list.push(window.location.protocol + src);
}
});
Please replace this code block with the following code:
$page
.find(logined ? ".DetailIllustItemImage" : ".IllustItemThumbImg")
.each(function () {
const src = $(this).attr("src");
if (src) {
let normalizedSrc = src;
if (src.startsWith("//")) {
normalizedSrc = window.location.protocol + src;
} else if (src.startsWith("/")) {
normalizedSrc = window.location.origin + src;
}
list.push(normalizedSrc);
}
});