Skip to content

Instantly share code, notes, and snippets.

@ppineda32
Forked from lvcasjm/README.md
Last active September 9, 2022 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ppineda32/eb5e1e6df621c4b16ec5f88cae55ce99 to your computer and use it in GitHub Desktop.
Save ppineda32/eb5e1e6df621c4b16ec5f88cae55ce99 to your computer and use it in GitHub Desktop.
Twitch Auto Channel Points Clicker

Twitch Auto Channel Points Clicker

How to use with Chrome:

1: Open Dev tools (Command + Option + J on Mac, Control + Shift + J on Windows). 2: Navigate to Sources tab. 3: Open Snippets. 4: Add a new snippet, give it a name (anything you want), copy the function from getTwitchChannelPoints.js and paste it into the newly created snippet. 5: Run the snippet.

That's it!

The script will now be running in you're selected browser tab. Closing the tab will stop the script so simply follow steps 1-3 and re-run your snippet to start it again. Once the script is running you can close the dev tools and continue watching your favorite streamers.

(function autoClickForPoints(debug) {
if (debug) console.log('△ Auto Clicker started △')
let count = 0;
const intervals = 30000; // 30 seconds in miliseconds.
setInterval(() => {
const section = document.getElementsByClassName('community-points-summary')[0];
const pointsButton = section.querySelector('[aria-label="Claim Bonus"]');
if (!pointsButton) return(debug && console.log('⨝ Points not ready for redemption ⨝'));
pointsButton.click();
count = count + 1;
console.log(`△ Points successfully redeemed. x ${count} △`);
}, intervals)
})(false); // set to true for debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment