bliveproxy

B站直播websocket hook框架

Dit script moet niet direct worden geïnstalleerd - het is een bibliotheek voor andere scripts om op te nemen met de meta-richtlijn // @require https://update.greasyfork.org/scripts/417560/1045452/bliveproxy.js

Maker
xfgryujk
Versie
0.5
Gemaakt op
02-12-2020
Bijgewerkt op
29-04-2022
Licentie
N.v.t.

使用方法:

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

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

GitHub

NGA帖子