get first bonus

just autotake first bonus from chanel points in twitch

// ==UserScript==
// @name         get first bonus
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  just autotake first bonus from chanel points in twitch
// @author       You
// @match        https://www.twitch.tv/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=twitch.tv
// @grant        none
// @license MIT
// ==/UserScript==
function clickElementByXPath(xpath) {
    const element = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
    if (element) {
      element.click();
      return true;
    }
    return false;
  }


// vovapain first
var buttonPoints ='//*[@id="live-page-chat"]/div/div/div[2]/div/div/section/div/seventv-container/div/div[2]/div[2]/div[1]/div/div/div/div[1]/div[2]/button'
var buttonTask = '//*[@id="channel-points-reward-center-body"]/div/div/div[5]/div/button/div'
var buttonAcccept ='//*[@id="channel-points-reward-center-body"]/div/div/div[3]/div/button'

function clElcl(){
    clickElementByXPath(buttonPoints)
    clickElementByXPath(buttonTask)
    clickElementByXPath(buttonAcccept)
}
(function() {
    'use strict';
        document.addEventListener("keydown", (event) => {
            if (event.key === "F9") {
                console.log("F9 key pressed");
                clElcl()
                // Действия, которые нужно выполнить при нажатии на кнопку F12
            }
    });

    // Your code here...
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元