AutoClaim Point Twitch | by MjKey

AutoClaim Point Twitch | +50 Passives

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Автокликер Баллов Twitch
// @name:en      AutoClaim Point Twitch | by MjKey
// @version      0.3
// @description  Автоматически нажимает на сундучёк +50, удобный пасивный абуз (фарм) поинтов (баллов).
// @description:en AutoClaim Point Twitch | +50 Passives 
// @copyright    2019, MjKey | MjKey.ru
// @author       MjKey
// @match        https://www.twitch.tv/*
// @match        *://*.twitch.tv/*
// @match        *://twitch.tv/*
// @grant        none
// @license      MIT
// @icon         https://www.google.com/s2/favicons?domain=twitch.tv
// @namespace https://greasyfork.org/users/519758
// ==/UserScript==

//18.03.2020 - фикс для хрома и обход анклика твича.
//19.04.2020 - Добавил рандомное время нажатия 2 - 7 секунд.
//28.11.2021 - Больше не жмёт на другие кнопки (бывал такой баг). Обновил иконку скрипта. (Был изменен селектор нажатия)

(function () {
  'use strict';
  function pressButton() {
    var AutoPoint = document.querySelectorAll(".claimable-bonus__icon");
    if (AutoPoint.length >= 1) {
        console.log("[АвтоКлик] Зафармленно!");
        AutoPoint[0].click();
    }
    timeClick();
  }
  function timeClick() {
    setTimeout(function () {
      pressButton();
    }, Math.random() * 1870 + 7600);
  }
  timeClick();
})();