Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用油猴加载脚本后,功能面板显示乱码 #3207

Closed
12208583 opened this issue Apr 2, 2022 · 5 comments
Closed

使用油猴加载脚本后,功能面板显示乱码 #3207

12208583 opened this issue Apr 2, 2022 · 5 comments

Comments

@12208583
Copy link

12208583 commented Apr 2, 2022

对应功能

面板出现乱码

问题描述

使用油猴加载脚本后,功能面板、显示乱码,试过2.1.5到2.1.7的版本,均有乱码显示。
浏览器:FireFox 98.0.2 Microsoft Edge 99.0.1150.55
脚本版本:2.1.7 2.1.6 2.1.5
油猴版本:4.15.6154
已排除其他插件影响

查看脚本(bilibili-evolved.user.js)源码,里面似乎也有乱码存在
油猴的脚本简介也有乱码

脚本版本

2.1.7

浏览器版本

FireFox 98.0.2 Microsoft Edge 99.0.1150.55

播放器版本

HTML5播放器 V2.76.3

播放策略

默认

错误信息

Micsoft Edge

[Violation]'requestIdleCallback' handler took 60ms
bili-header.umd.js:1 [Intervention]Images loaded lazily and replaced with placeholders. Load events are deferred. See https://go.microsoft.com/fwlink/?linkid=2048113
6[Violation]Forced reflow while executing JavaScript 用时 <N> 毫秒
[Violation]Forced reflow while executing JavaScript took 41ms
[Violation]Forced reflow while executing JavaScript took 36ms
[Violation]Forced reflow while executing JavaScript took 35ms
[Violation]Forced reflow while executing JavaScript took 32ms
[Violation]Forced reflow while executing JavaScript took 30ms
[Violation]Forced reflow while executing JavaScript took 31ms
14[Violation]Added non-passive event listener to a scroll-blocking <某些> 事件. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:5
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:4
i.init @ jsc-player.b06bb86f.js:253
i @ jsc-player.b06bb86f.js:253
i.init @ jsc-player.b06bb86f.js:311
i @ jsc-player.b06bb86f.js:310
i.loadTemplate @ jsc-player.b06bb86f.js:490
i._init @ jsc-player.b06bb86f.js:489
l @ jsc-player.b06bb86f.js:481
i @ jsc-player.b06bb86f.js:481
i @ jsc-player.b06bb86f.js:502
e.newH5Player @ video.39e1970c.js?v=20210111:230
(匿名) @ video.39e1970c.js?v=20210111:230
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:5
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:4
i.init @ jsc-player.b06bb86f.js:253
i @ jsc-player.b06bb86f.js:253
i.init @ jsc-player.b06bb86f.js:311
i @ jsc-player.b06bb86f.js:310
i.loadTemplate @ jsc-player.b06bb86f.js:490
i._init @ jsc-player.b06bb86f.js:489
l @ jsc-player.b06bb86f.js:481
i @ jsc-player.b06bb86f.js:481
i @ jsc-player.b06bb86f.js:502
e.newH5Player @ video.39e1970c.js?v=20210111:230
(匿名) @ video.39e1970c.js?v=20210111:230
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
add @ jsc-player.b06bb86f.js:40
(匿名) @ jsc-player.b06bb86f.js:42
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
on @ jsc-player.b06bb86f.js:42
i.globalEvents @ jsc-player.b06bb86f.js:262
i @ jsc-player.b06bb86f.js:262
i.init @ jsc-player.b06bb86f.js:311
i @ jsc-player.b06bb86f.js:310
i.loadTemplate @ jsc-player.b06bb86f.js:490
i._init @ jsc-player.b06bb86f.js:489
l @ jsc-player.b06bb86f.js:481
i @ jsc-player.b06bb86f.js:481
i @ jsc-player.b06bb86f.js:502
e.newH5Player @ video.39e1970c.js?v=20210111:230
(匿名) @ video.39e1970c.js?v=20210111:230
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:5
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:4
i.init @ jsc-player.b06bb86f.js:259
i @ jsc-player.b06bb86f.js:259
i.init @ jsc-player.b06bb86f.js:311
i @ jsc-player.b06bb86f.js:310
i.loadTemplate @ jsc-player.b06bb86f.js:490
i._init @ jsc-player.b06bb86f.js:489
l @ jsc-player.b06bb86f.js:481
i @ jsc-player.b06bb86f.js:481
i @ jsc-player.b06bb86f.js:502
e.newH5Player @ video.39e1970c.js?v=20210111:230
(匿名) @ video.39e1970c.js?v=20210111:230
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.aiBlockFlag @ jsc-player.b06bb86f.js:453
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.aiBlockFlag @ jsc-player.b06bb86f.js:453
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(匿名) @ sentry-5.7.1.min.js:2
(匿名) @ sentry-5.7.1.min.js:2
t.init @ jsc-auxiliary~player.9ebbd687.js:13
e @ jsc-auxiliary~player.9ebbd687.js:4
t @ jsc-auxiliary~player.9ebbd687.js:13
i.init @ jsc-player.b06bb86f.js:452
i @ jsc-player.b06bb86f.js:449
i.laterLoadTemplate @ jsc-player.b06bb86f.js:491
(匿名) @ jsc-player.b06bb86f.js:484
a @ jsc-player.b06bb86f.js:42
dispatch @ jsc-player.b06bb86f.js:41
n @ jsc-player.b06bb86f.js:40
trigger @ jsc-player.b06bb86f.js:41
(匿名) @ jsc-player.b06bb86f.js:43
each @ jsc-player.b06bb86f.js:35
each @ jsc-player.b06bb86f.js:34
trigger @ jsc-player.b06bb86f.js:43
i.trigger @ jsc-player.b06bb86f.js:485
(匿名) @ jsc-player.b06bb86f.js:481
sentryWrapped @ sentry-5.7.1.min.js:2
sentry-5.7.1.min.js:2 [Violation]'setTimeout' handler took 84ms

附加截图

屏幕截图 2022-04-02 093212
屏幕截图 2022-04-02 093359
屏幕截图 2022-04-02 103544

@the1812
Copy link
Owner

the1812 commented Apr 5, 2022

看起来像是编码问题, 浏览器有改过啥语言设置吗

@12208583
Copy link
Author

12208583 commented Apr 5, 2022

确实,但浏览器都是默认设置,页面里其他内容没有编码问题,应该是脚本内的编码和网页编码不同导致的

@the1812
Copy link
Owner

the1812 commented Apr 5, 2022

弄个 zip 看看会不会乱码
bilibili-evolved.user.zip

@12208583
Copy link
Author

12208583 commented Apr 5, 2022

不行,情况还是一样的
屏幕截图 2022-04-05 132759

@12208583
Copy link
Author

12208583 commented Apr 5, 2022

问题解决,是油猴本身编码的问题(tempermonkey),默认使用的不是utf8编码,换成暴力猴加载就解决了。

@the1812 the1812 closed this as completed Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants