Greasy Fork is available in English.
虎牙JS弹幕发射鸡
当前为
// ==UserScript==
// @icon https://huyaimg.msstatic.com/avatar/1094/b7/1429a763a419403e621a3472214759_180_135.jpg?1461836156?452005
// @name JS弹幕发射鸡
// @namespace http://tampermonkey.net/
// @version 0.5
// @description 虎牙JS弹幕发射鸡
// @author 饭店的老师
// @match *://www.huya.com/131400*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var counter = 0;
function co(){
counter++;
if(counter>=4){
setTimeout(fn, 10000);
counter = 0;
}else{
setTimeout(fn, 500);
}
}
function fn() {
var input = document.querySelector('#player-full-input-txt');
input.value = "夺笋";
var btn = document.querySelector('#player-full-input-btn');
btn.click();
setTimeout(co, 100);
}
setTimeout(fn,5000);
// Your code here...
})();