Jump to content
Akinix
Sign in to follow this  
C.M.

Script for automatically opening a chest with channel points

Recommended Posts

Script for automatically opening a chest with points on Twitch channels.

function clickBonusChest() {
    var button = document
        .getElementsByClassName("community-points-summary")[0]
        .getElementsByClassName("tw-full-height tw-relative tw-z-above")[0]
        .getElementsByTagName('button')[0];
    if (button) {
        button.click()
    }
}
setInterval(clickBonusChest, 500);

You could use it from developers console in browser (CTRL+SHIFT+J) or in any addon which allows you to run custom JS on visited websites.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...