Skip to content

Instantly share code, notes, and snippets.

@thecodewarrior
Last active May 30, 2024 15:15
Show Gist options
  • Save thecodewarrior/00e5654956eee23fcc2e8baae634ad2c to your computer and use it in GitHub Desktop.
Save thecodewarrior/00e5654956eee23fcc2e8baae634ad2c to your computer and use it in GitHub Desktop.
Automatically collect channel bonus points
// ==UserScript==
// @name Auto Twitch Bonus
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Automatically collect channel points
// @author thecodewarrior
// @match https://www.twitch.tv/*
// @downloadURL https://gist.githubusercontent.com/thecodewarrior/00e5654956eee23fcc2e8baae634ad2c/raw/AutoTwitchBonus.js
// ==/UserScript==
(function() {
'use strict';
setInterval(function() {
let elem = document.querySelector('.claimable-bonus__icon');
if(elem != null) {
console.log("[Auto Twitch Bonus] Clicking bonus");
elem.parentElement.parentElement.click();
}
}, 5000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment