|
12 | 12 | // @description:ja 画像を強力に閲覧できるツール。ポップアップ表示、拡大・縮小、回転、一括保存などの機能を自動で実行できます |
13 | 13 | // @description:pt-BR Poderosa ferramenta de visualização de imagens on-line, que pode pop-up/dimensionar/girar/salvar em lote imagens automaticamente |
14 | 14 | // @description:ru Мощный онлайн-инструмент для просмотра изображений, который может автоматически отображать/масштабировать/вращать/пакетно сохранять изображения |
15 | | -// @version 2025.9.26.1 |
| 15 | +// @version 2025.9.27.1 |
16 | 16 | // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD////29vbKysoqKioiIiKysrKhoaGTk5N9fX3z8/Pv7+/r6+vk5OTb29vOzs6Ojo5UVFQzMzMZGRkREREMDAy4uLisrKylpaV4eHhkZGRPT08/Pz/IfxjQAAAAgklEQVQoz53RRw7DIBBAUb5pxr2m3/+ckfDImwyJlL9DDzQgDIUMRu1vWOxTBdeM+onApENF0qHjpkOk2VTwLVEF40Kbfj1wK8AVu2pQA1aBBYDHJ1wy9Cf4cXD5chzNAvsAnc8TjoLAhIzsBao9w1rlVTIvkOYMd9nm6xPi168t9AYkbANdajpjcwAAAABJRU5ErkJggg== |
17 | 17 | // @namespace https://github.com/hoothin/UserScripts |
18 | 18 | // @homepage https://github.com/hoothin/UserScripts/tree/master/Picviewer%20CE%2B |
@@ -22031,7 +22031,7 @@ ImgOps | https://imgops.com/#b#`; |
22031 | 22031 | if (!imme && this.following) return; |
22032 | 22032 | let wSize = getWindowSize(); |
22033 | 22033 |
|
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;//内外侧间距 |
22035 | 22035 | imgWindow.style.position = "fixed"; |
22036 | 22036 | let scrolled = {x: 0, y: 0}; |
22037 | 22037 |
|
@@ -25584,6 +25584,7 @@ ImgOps | https://imgops.com/#b#`; |
25584 | 25584 | let checkEle = target; |
25585 | 25585 | while(checkEle && !(checkEle.textContent && checkEle.textContent.trim()) && checkEle.children.length === 1) { |
25586 | 25586 | checkEle = checkEle.children[0]; |
| 25587 | + if (target.clientWidth && target.clientWidth > checkEle.clientWidth * 1.2) break; |
25587 | 25588 | if (checkEle.nodeName === "IMG") { |
25588 | 25589 | target = checkEle; |
25589 | 25590 | found = true; |
@@ -26229,6 +26230,7 @@ ImgOps | https://imgops.com/#b#`; |
26229 | 26230 | if (e.relatedTarget == ImgWindowC.overlayer) return; |
26230 | 26231 | if(uniqueImgWin && !uniqueImgWin.removed){ |
26231 | 26232 | if(checkPreview(e)){ |
| 26233 | + if (!uniqueImgWin.data.img) return uniqueImgWin && uniqueImgWin.remove(); |
26232 | 26234 | let showArea=uniqueImgWin.data.img.getBoundingClientRect(); |
26233 | 26235 | if(e.clientX < showArea.left + 20 || |
26234 | 26236 | e.clientX > showArea.right - 20 || |
|
0 commit comments