Created
November 4, 2019 02:53
-
-
Save Kowiz/d9250fa6f7cce081d0bae7dbfa14eedd to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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