Skip to content

Commit b503d4a

Browse files
committed
fix
1 parent 0ce68bd commit b503d4a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 9 additions & 1 deletion
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 2018.1.19.1
9+
// @version 2018.4.3.1
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -3972,6 +3972,12 @@
39723972
var cur=pageDiv.querySelector("span.current");
39733973
pre=cur.previousSibling;
39743974
next=cur.nextSibling;
3975+
}else{
3976+
var cur=curPage.querySelector("div.article-paging>span");
3977+
if(cur){
3978+
pre=cur.previousElementSibling;
3979+
next=cur.nextElementSibling;
3980+
}
39753981
}
39763982
}
39773983
return {pre:pre,next:next};
@@ -4030,6 +4036,7 @@
40304036
method: 'GET',
40314037
headers:{"Referer": + window.location.href},
40324038
url: self.href,
4039+
overrideMimeType:"text/html;charset="+document.charset,
40334040
onload: function(d) {
40344041
let html=document.implementation.createHTMLDocument('');
40354042
html.documentElement.innerHTML = d.responseText;
@@ -4109,6 +4116,7 @@
41094116
method: 'GET',
41104117
url: self.href,
41114118
headers:{"Referer": + window.location.href},
4119+
overrideMimeType:"text/html;charset="+document.charset,
41124120
onload: function(d) {
41134121
let html=document.implementation.createHTMLDocument('');
41144122
html.documentElement.innerHTML = d.responseText;

0 commit comments

Comments
 (0)