Jump to content
Akinix

Script for automatically opening a chest with channel points


C.M.

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.

Link to comment
Share on other sites

  • C.M. changed the title to Script for automatically opening a chest with channel points
×
×
  • Create New...