Skip to content

Instantly share code, notes, and snippets.

@Kowiz
Created November 4, 2019 02:53
Show Gist options
  • Save Kowiz/d9250fa6f7cce081d0bae7dbfa14eedd to your computer and use it in GitHub Desktop.
Save Kowiz/d9250fa6f7cce081d0bae7dbfa14eedd to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Twitch Auto Channel Points
// @namespace Kowiz
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.twitch.tv/*
// @grant none
// ==/UserScript==
setInterval(function() {
channelPointsChecker();
}, 60000);
function channelPointsChecker() {
var a = document.getElementsByClassName("claimable-bonus__icon tw-flex");
if(a.length==1){
a[0].click();
}
}
window.addEventListener("hashchange", channelPointsChecker, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment