Skip to content

Commit 329cb36

Browse files
committed
update
1 parent d831565 commit 329cb36

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Pagetual/pagetual.user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3276,7 +3276,8 @@
32763276
let curHref = next4.getAttribute("href");
32773277
let curPageReg = new RegExp("(.*)" + (pageNum + 1) + afterStr.replace(/([\.\?])/g, '\\$1'));
32783278
let otherPageHref = curHref.replace(curPageReg, `$1${pageNum}${afterStr}`);
3279-
let otherPageEle = body.querySelector(`a[href='${otherPageHref}']`);
3279+
let otherPageEles = body.querySelectorAll(`a[href='${otherPageHref}']`);
3280+
let otherPageEle = otherPageEles.length && otherPageEles[otherPageEles.length - 1];
32803281
if (!otherPageEle) {
32813282
otherPageHref = curHref.replace(curPageReg, `$1${pageNum + 2}${afterStr}`);
32823283
otherPageEle = body.querySelector(`a[href='${otherPageHref}']`);

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 2 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.5.4.1
15+
// @version 2025.6.7.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
@@ -25217,7 +25217,7 @@ ImgOps | https://imgops.com/#b#`;
2521725217
if (result.imgAS.w < result.imgCS.w * 1.5 && result.imgAS.h < result.imgCS.h * 1.5) {
2521825218
if (result.img && result.img.childElementCount) return false;
2521925219
var wSize = getWindowSize();
25220-
if (result.imgAS.w <= wSize.w && result.imgAS.h <= wSize.h) return false;
25220+
if (prefs.floatBar.globalkeys.invertInitShow && result.imgAS.w <= wSize.w && result.imgAS.h <= wSize.h) return false;
2522125221
}
2522225222
}
2522325223
uniqueImgWinInitX = clientX;

0 commit comments

Comments
 (0)