Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Violentmonkey里脚本运行失败 #162

Open
mycraftmw opened this issue Jan 29, 2021 · 0 comments
Open

Violentmonkey里脚本运行失败 #162

mycraftmw opened this issue Jan 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@mycraftmw
Copy link

mycraftmw commented Jan 29, 2021

描述bug
脚本在ViolentMonkey中运行会出现TypeError: "window" is read-only.

重现bug

  1. 在github页面安装加载脚本到ViolentMonkey中。
  2. 打开B站的一个普通直播间

预期行为
页面右上方礼物榜单上方应出现相应的三个设置按钮。实际并不出现,并且在console中能看到闪过一个报错。

截图
Screenshot_20210129_120756

使用环境:

  • 浏览器: Firefox
  • 浏览器版本: 85.0
  • 脚本的版本: v3.1.11
  • 网络情况(网速): 好
  • 其他浏览器插件/脚本: N/A
  • bug出现时间: 1/29/21 12:16

其他
因为B站的某个js文件会清理console里的log,所以这个报错在页面完全加载之后会被清理,需要开着console加载界面才能看到报错。
经过测试,在TamperMonkey中能运行。

@SeaLoong SeaLoong added the bug Something isn't working label Jan 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants