Last active
May 3, 2023 07:06
-
-
Save techygrrrl/e3020359138447624047526c9b2f53c8 to your computer and use it in GitHub Desktop.
Auto-click the channel rewards button to automatically claim the bonus without having to click. Install a user script runner like ViolentMonkey, TamperMonkey or GreaseMonkey and Click "Raw" to install.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitch auto-clickrrr | |
// @namespace https://techygrrrl.stream | |
// @version 0.1 | |
// @description Auto-click the rewards | |
// @author techygrrrl | |
// @match https://*.twitch.tv/* | |
// @match https://*.twitch.com/* | |
// @icon https://techygrrrl.stream/images/icons/channel-clickrrr.png | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Check and click in milliseconds | |
const CHECK_INTERVAL = 5000 | |
const CLICK_DELAY = 3000 | |
setInterval(() => { | |
twitchRewardFindAndClick() | |
}, CHECK_INTERVAL) | |
function twitchRewardFindAndClick() { | |
// console.log('🕵🏻♀️ Looking for rewards button') | |
const selector = '[aria-label="Claim Bonus"]' | |
const element = document.querySelector(selector) | |
if (!element) return | |
element.style.background = '#E400DB' | |
setTimeout(() => { | |
element.click() | |
}, CLICK_DELAY) | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment