Bilibili-Evolved/min/auto-draw.min.js
2019-08-25 15:46:11 +08:00

1 line
468 B
JavaScript

(()=>{return(t,e)=>{(async()=>{if(!/^https:\/\/live\.bilibili\.com\/[\d]+/.test(document.URL)){return}const t=await SpinQuery.select(".chat-popups-section");console.log(t);if(!t){console.warn("[自动领奖] 未能找到弹窗容器");return}Observer.childListSubtree(t,()=>{let t;while(true){console.log("draw button = ",dq(".chat-popups-section .draw>span:nth-child(3)"));t=dq(".chat-popups-section .draw>span:nth-child(3)");if(t===null){break}t.click()}})})()}})();