Skip to content

Commit 81610cc

Browse files
committed
fix for nextpage
1 parent 524ecbf commit 81610cc

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures or find the HD original picture automatically
77
// @description:zh-CN NLF 的围观图修改版,增加高清原图查找显示(在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存、查找原图)
88
// @description:zh-TW NLF 的圍觀圖修改版,增加高清原圖查詢顯示(線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存、查詢原圖)
9-
// @version 2017.4.9.2
9+
// @version 2017.4.9.3
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -3376,6 +3376,8 @@ padding-left:24px;">'+shareItem.name+'</span>');
33763376
var curPage=this.curPage;
33773377
let pre=curPage.querySelector("a.prev");
33783378
let next=curPage.querySelector("a.next");
3379+
if(!pre)pre=curPage.querySelector("a#prev");
3380+
if(!next)next=curPage.querySelector("a#next");
33793381
if(!pre)pre=curPage.querySelector(".prev>a");
33803382
if(!next)next=curPage.querySelector(".next>a");
33813383
if(!pre && !next){
@@ -3714,11 +3716,14 @@ display:none !important;\
37143716
.grid>div>img { max-height: 180px; max-width: 320px; }\
37153717
.list>div {text-align:center;}\
37163718
.list>div>img { max-width: 100%; }\
3719+
.gridBig{margin: 0px;}\
3720+
.gridBig>div { float: left;}\
3721+
.gridBig>div>img { max-width: 100%; }\
37173722
</style>\
37183723
</head>\
37193724
<body class="grid">\
37203725
<p>【图片标题】:' + title + '</p>\
3721-
<p>【图片数量】:' + nodes.length + ' <input type="checkbox" checked="checked" onclick="document.body.className=(document.body.className==\'grid\'?\'list\':\'grid\')">平铺对齐</p>\
3726+
<p>【图片数量】:' + nodes.length + ' <select onchange="document.body.className=this.options[this.options.selectedIndex].value"><option value="grid">平铺排序</option><option value="gridBig">原图平铺</option><option value="list">列表排序</option></select></p>\
37223727
';
37233728

37243729
html += arr.join('\n') + '</body>'

0 commit comments

Comments
 (0)