Skip to content

Commit 00e21d9

Browse files
committed
Update Picviewer CE+.user.js
1 parent 7b7b161 commit 00e21d9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// @description:ja 画像を強力に閲覧できるツール。ポップアップ表示、拡大・縮小、回転、一括保存などの機能を自動で実行できます
1313
// @description:pt-BR Poderosa ferramenta de visualização de imagens on-line, que pode pop-up/dimensionar/girar/salvar em lote imagens automaticamente
1414
// @description:ru Мощный онлайн-инструмент для просмотра изображений, который может автоматически отображать/масштабировать/вращать/пакетно сохранять изображения
15-
// @version 2025.9.21.1
15+
// @version 2025.9.21.2
1616
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD////29vbKysoqKioiIiKysrKhoaGTk5N9fX3z8/Pv7+/r6+vk5OTb29vOzs6Ojo5UVFQzMzMZGRkREREMDAy4uLisrKylpaV4eHhkZGRPT08/Pz/IfxjQAAAAgklEQVQoz53RRw7DIBBAUb5pxr2m3/+ckfDImwyJlL9DDzQgDIUMRu1vWOxTBdeM+onApENF0qHjpkOk2VTwLVEF40Kbfj1wK8AVu2pQA1aBBYDHJ1wy9Cf4cXD5chzNAvsAnc8TjoLAhIzsBao9w1rlVTIvkOYMd9nm6xPi168t9AYkbANdajpjcwAAAABJRU5ErkJggg==
1717
// @namespace https://github.com/hoothin/UserScripts
1818
// @homepage https://github.com/hoothin/UserScripts/tree/master/Picviewer%20CE%2B
@@ -15837,10 +15837,14 @@ ImgOps | https://imgops.com/#b#`;
1583715837
}, prefs.gallery.downloadGap);
1583815838
};
1583915839
let threadNum = 10;
15840+
if (prefs.gallery.downloadGap > 500) {
15841+
threadNum = 1;
15842+
} else if (prefs.gallery.downloadGap > 100) {
15843+
threadNum = 5;
15844+
}
1584015845
let downIntv = setInterval(() => {
15841-
if (threadNum-- === 0) {
15846+
if (--threadNum === 0) {
1584215847
clearInterval(downIntv);
15843-
return;
1584415848
}
1584515849
let saveParam = saveParams && saveParams.shift();
1584615850
if (!saveParam) clearInterval(downIntv);
@@ -19847,6 +19851,9 @@ ImgOps | https://imgops.com/#b#`;
1984719851
GalleryC.prototype.Preload.prototype.container=div;
1984819852
};
1984919853
this.max=prefs.gallery.max;
19854+
if (prefs.gallery.downloadGap > 500) {
19855+
this.max = 0;
19856+
}
1985019857
this.nextNumber=0;
1985119858
this.nextEle=this.ele;
1985219859
this.preNumber=0;

0 commit comments

Comments
 (0)