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

Violentmonkey里脚本运行失败 #162

@mycraftmw

Description

@mycraftmw

描述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中能运行。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions