twitch auto loot (24.01.2022 working)

14.7.2020, 13:40:04

< 腳本twitch auto loot (24.01.2022 working)的回應

評論:正評 - 腳本一切正常

§
發表於:2022-11-22

// ==UserScript==
// @name Twitch Auto Loot (22.11.2022 working)
// @namespace Violentmonkey Scripts
// @match https://www.twitch.tv/*
// @grant none
// @version 1.9
// @require https://code.jquery.com/jquery-3.5.1.min.js
// @author -
// @description 22.11.2022, 15:48:00
// @license MIT
// ==/UserScript==
var classname = "ScCoreButton-sc-ocjdkq-0 ScCoreButtonSuccess-sc-ocjdkq-5 ibtYyW iVIehm";
async function main(){
buttoncounter = 0;
while(true){
secondsPassed = 0;
while(document.getElementsByClassName(classname)[0] == undefined){
await sleep(1000);
secondsPassed++;
console.log("Seconds: " + secondsPassed + " Buttons: " + buttoncounter);
}

document.getElementsByClassName(classname)[0].click();
buttoncounter++;
console.log("Button clicked: " + buttoncounter);
await sleep(1000);
}
};

function sleep(milliseconds) {
return new Promise(resolve => setTimeout(resolve, milliseconds));
}
$( document ).ready(function() {
main();
console.log("Auto Loot active");
});

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址