Skip to content

Commit 98e9e98

Browse files
committed
Update Picviewer CE+.user.js
1 parent 1ca7e08 commit 98e9e98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 4 additions & 2 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.26.1
15+
// @version 2025.9.27.1
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
@@ -22031,7 +22031,7 @@ ImgOps | https://imgops.com/#b#`;
2203122031
if (!imme && this.following) return;
2203222032
let wSize = getWindowSize();
2203322033

22034-
let padding1 = Math.min(250, wSize.h>>2, wSize.w>>2, Math.max(this.data.img && this.data.img.clientWidth, this.data.img && this.data.img.clientHeight, 100)>>2), padding2 = 50, left, top;//内外侧间距
22034+
let padding1 = Math.min(250, wSize.h>>2, wSize.w>>2, Math.max(this.data.img && this.data.img.clientWidth, this.data.img && this.data.img.clientHeight, 50)>>1), padding2 = 50, left, top;//内外侧间距
2203522035
imgWindow.style.position = "fixed";
2203622036
let scrolled = {x: 0, y: 0};
2203722037

@@ -25584,6 +25584,7 @@ ImgOps | https://imgops.com/#b#`;
2558425584
let checkEle = target;
2558525585
while(checkEle && !(checkEle.textContent && checkEle.textContent.trim()) && checkEle.children.length === 1) {
2558625586
checkEle = checkEle.children[0];
25587+
if (target.clientWidth && target.clientWidth > checkEle.clientWidth * 1.2) break;
2558725588
if (checkEle.nodeName === "IMG") {
2558825589
target = checkEle;
2558925590
found = true;
@@ -26229,6 +26230,7 @@ ImgOps | https://imgops.com/#b#`;
2622926230
if (e.relatedTarget == ImgWindowC.overlayer) return;
2623026231
if(uniqueImgWin && !uniqueImgWin.removed){
2623126232
if(checkPreview(e)){
26233+
if (!uniqueImgWin.data.img) return uniqueImgWin && uniqueImgWin.remove();
2623226234
let showArea=uniqueImgWin.data.img.getBoundingClientRect();
2623326235
if(e.clientX < showArea.left + 20 ||
2623426236
e.clientX > showArea.right - 20 ||

0 commit comments

Comments
 (0)