斗鱼自动发弹幕

步骤:

1.进入斗鱼直播;

2.按下f12;

3.点击Console;

4.复制下方代码黏贴至Console下,回车就会自动输弹幕;

友情提醒:若想终止请在console下输入stop()–或–按f5;

代码如下:

const area = document.getElementsByClassName('ChatSend-txt')[0]
const btn = document.getElementsByClassName('ChatSend-button ')[0]
const danmu = '输入想发的弹幕内容'
let interval
function start()
{
interval = setInterval(function(){
area.value = danmu
btn.click()
},1000)
}弹幕
function stop()
{
clearInterval(interval)
}
start()