Do you love watching your favourite streamer in twitch but you hate forgetting to claim your community points?, Say no more, this script will save your as*.
I know using class name sucks, but no way doing the right way..., if you think you can do it better post your code in this thread :D
Ussage: paste the script in dev console (Ctrl + shift + I) in chrome, firefox don't know if its the same or not...
Make sure to paste in TOP context of the console window, or it won't work
Code:
(document.getElementsByClassName("tw-full-height tw-relative tw-z-above")[0]).addEventListener("DOMNodeInserted", function (ev) {
const target = ev.target;
if (target) {
const btn = target.querySelector("button");
if (btn) {
console.log("Preparing click");
setTimeout(() => {
btn.click();
console.log("Done!");
}, Math.floor((Math.random() * 2500) + 1000));
}
}
}, false);
Ussage: paste the script in dev console (Ctrl + shift + I) in chrome, firefox don't know if its the same or not...
Make sure to paste in TOP context of the console window, or it won't work