Greasy Fork is available in English.

Picviewer CE+

線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存

< 腳本Picviewer CE+的回應

評論:正評 - 腳本一切正常

§
發表於:2021-12-25

怎么设置中文?

§
發表於:2022-02-05

同问,我也是英文的。。。。

§
發表於:2022-02-05

第56行?改成下面这个代码就行
var lang = "zh-CN" //navigator.appName=="Netscape"?navigator.language:navigator.userLanguage,debug;

hoothin作者
§
發表於:2022-02-05

看起来是获取不到默认语言,你们用的是什么浏览器?

§
發表於:2022-02-11
編輯:2022-02-11

看起来是获取不到默认语言,你们用的是什么浏览器?

大佬好,估计我们浏览器的默认语言不是zh-cn。 这都还好,我以为更大的问题是这个

Uncaught TypeError: Cannot read property 'rules' of undefined at HTMLDocument.globalMouseoverHandler (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:22721)

console 里几百条都是picviewer的报错……🙇‍♂️🙇‍♂️🙇‍♂️@hoothin

hoothin作者
§
發表於:2022-02-11

看起来是获取不到默认语言,你们用的是什么浏览器?

大佬好,估计我们浏览器的默认语言不是zh-cn。
这都还好,我以为更大的问题是这个:

Uncaught TypeError: Cannot read property 'rules' of undefined at HTMLDocument.globalMouseoverHandler (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:22721)

console 里几百条都是picviewer的报错……🙇‍♂️🙇‍♂️🙇‍♂️@hoothin

你看下你能不能访问https://greasyfork.org/scripts/438080-pvcep-rules/code/pvcep_rules.js?version=1016378这个?

hoothin作者
§
發表於:2022-02-11

方便的话请告知一下你所用的浏览器和脚本管理器,我猜测可能是pvcep_rules.js没有加载或者加载失败导致的

§
發表於:2022-02-11
編輯:2022-02-11

方便的话请告知一下你所用的浏览器和脚本管理器,我猜测可能是 pvcep_rules.js 没有加载或者加载失败导致的

回大佬,能打开。 打开的页面里,显示如下错误:

userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23593 Uncaught (in promise) ReferenceError: debug is not defined at loadPrefs (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23593) at init (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23536) at init2 (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23608) at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23853) at Proxy.tms_8b383975_ea0d_4982_94bc_b28c028549c0$ (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23855) at nt (:13:1036) at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:1) at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:1) at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23856) at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23858) loadPrefs @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23593 init @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23536 init2 @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23608 eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23853 tms_8b383975_ea0d_4982_94bc_b28c028549c0$ @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23855 nt @ VM114:13 eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:1 eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:1 eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23856 eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23858 E_u @ VM114:4 eval @ VM116:64 create @ VM116:65 l @ VM116:6 nt @ VM114:13 a @ VM116:3 eval @ VM116:4 (anonymous) @ VM114:6 x @ VM114:6 setTimeout (async) setTimeout @ VM104 content.js:118 processMessage @ VM104 content.js:121 (anonymous) @ VM104 content.js:125 (anonymous) @ VM104 content.js:106 nt @ VM114:13 C..T. @ VM114:4 nt @ VM114:13 w @ VM114:6 send @ VM114:7 r @ VM116:4 setTimeout @ VM116:4 eval @ VM116:7 runListeners @ VM116:6 run @ VM116:7 eval @ VM116:67 nt @ VM114:13 t @ VM114:14 eval @ VM116:67 eval @ VM116:67 TM_back @ VM116:68 eval @ VM116:68 nt @ VM114:13 exec_fn @ VM114:3 (anonymous) @ VM114:8 x @ VM114:6 s @ VM104 content.js:105 send @ VM104 content.js:106 (anonymous) @ VM104 content.js:131 E @ VM104 content.js:131 (anonymous) @ VM104 content.js:126 6userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:22736 Uncaught TypeError: Cannot read property 'rules' of undefined at HTMLDocument.globalMouseoverHandler (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:22736)

似乎已排除广告过滤插件和爬墙软件的影响。 使用centbrowser Version 4.3.9.248 (Official Build) (32-bit) (Portable) (Chromium 86.0.4240.198)、Tampermonkey 4.14 @hoothin

hoothin作者
§
發表於:2022-02-11

方便的话请告知一下你所用的浏览器和脚本管理器,我猜测可能是 pvcep_rules.js 没有加载或者加载失败导致的

回大佬,能打开。
打开的页面里,显示如下错误:

userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23593 Uncaught (in promise) ReferenceError: debug is not defined
at loadPrefs (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23593)
at init (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23536)
at init2 (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23608)
at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23853)
at Proxy.tms8b383975ea0d498294bcb28c028549c0$ (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23855)
at nt (:13:1036)
at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:1)
at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:1)
at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23856)
at eval (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23858)
loadPrefs @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23593
init @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23536
init2 @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23608
eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23853
tms8b383975ea0d498294bcb28c028549c0$ @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23855
nt @ VM114:13
eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:1
eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:1
eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23856
eval @ userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:23858
Eu @ VM114:4
eval @ VM116:64
create @ VM116:65
l @ VM116:6
nt @ VM114:13
a @ VM116:3
eval @ VM116:4
(anonymous) @ VM114:6
x @ VM114:6
setTimeout (async)
setTimeout @ VM104 content.js:118
processMessage @ VM104 content.js:121
(anonymous) @ VM104 content.js:125
(anonymous) @ VM104 content.js:106
nt @ VM114:13
C..T. @ VM114:4
nt @ VM114:13
w @ VM114:6
send @ VM114:7
r @ VM116:4
setTimeout @ VM116:4
eval @ VM116:7
runListeners @ VM116:6
run @ VM116:7
eval @ VM116:67
nt @ VM114:13
t @ VM114:14
eval @ VM116:67
eval @ VM116:67
TMback @ VM116:68
eval @ VM116:68
nt @ VM114:13
exec_fn @ VM114:3
(anonymous) @ VM114:8
x @ VM114:6
s @ VM104 content.js:105
send @ VM104 content.js:106
(anonymous) @ VM104 content.js:131
E @ VM104 content.js:131
(anonymous) @ VM104 content.js:126
6userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:22736 Uncaught TypeError: Cannot read property 'rules' of undefined
at HTMLDocument.globalMouseoverHandler (userscript.html?name=Picviewer%20CE%2B.user.js&id=8b383975-ea0d-4982-94bc-b28c028549c0:22736)

似乎已排除广告过滤插件和爬墙软件的影响。
使用centbrowser Version 4.3.9.248 (Official Build) (32-bit) (Portable) (Chromium 86.0.4240.198)、Tampermonkey 4.14 @hoothin

嗯,是你上面改动代码造成的:),报错是这个“ReferenceError: debug is not defined”。 需要改成中文的话,代码得这样写 var lang = "zh-CN",debug;

§
發表於:2022-02-12

啊这,原来如此!感恩大佬!!

§
發表於:2022-02-15

第56行?改成下面这个代码就行
var lang = "zh-CN" //navigator.appName=="Netscape"?navigator.language:navigator.userLanguage,debug;

浏览器是 版本 4.3.9.248(正式版本) (64 位) (Portable) (Chromium 86.0.4240.198)
修改代码后 问题解决了
谢谢

發表回覆

登入以回復