bliveproxy

B站直播websocket hook框架

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/417560/1045452/bliveproxy.js

Author
xfgryujk
Version
0.5
Created
2020-12-02
Updated
2022-04-29
License
N/A

使用方法:

bliveproxy.addCommandHandler('DANMU_MSG', command => {
  console.log(command)
  let info = command.info
  info[1] = '测试'
})

如果@grant不是none,则要使用unsafeWindow.bliveproxy

GitHub

NGA帖子