Greasy Fork

Greasy Fork is available in English.

Acfun直播挂机

try to take over the world!

目前为 2020-09-25 提交的版本。查看 最新版本

// ==UserScript==
// @name         Acfun直播挂机
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  try to take over the world!
// @author       费德勒的名单
// @match        https://live.acfun.cn/live/*
// @grant        none
// ==/UserScript==
var status=document.getElementsByClassName("tip");
var timer=setInterval(function(){
    if(status[0].innerText!="当前没有直播"){
        window.location.reload();
    }else{

        clearInterval(timer);
    }
},600000);
pause();


function pause(){
    setTimeout(function() {
    document.getElementsByClassName("btn-span")[0].click();
},4000);
};