My Twitch Drop Claimer

automatically clicks the "Get drop" button

目前为 2021-04-11 提交的版本。查看 最新版本

// ==UserScript==
// @name            My Twitch Drop Claimer
// @name:ru         My Twitch Drop Claimer
// @namespace       http://www.aazone.ru/
// @version         0.1
// @description     automatically clicks the "Get drop" button
// @description:ru  автоматически нажимает кнопку "Получить"
// @author          Aaz
// @match           https://www.twitch.tv/*
// @match           *://*.twitch.tv/*
// @match           *://twitch.tv/*
// @icon            https://static.twitchcdn.net/assets/favicon-32-d6025c14e900565d6177.png
// @grant           none
// ==/UserScript==

/* jshint esversion: 6 */

(function() { 'use strict';

    const GetButton = () => {
        const yNode = document.querySelector('.ScCoreButton-sc-1qn4ixc-0.ScCoreButtonPrimary-sc-1qn4ixc-1.Lja-dZ.tw-core-button');

        if (yNode) {
            yNode.click();
            console.log('Get drop button is pressed');
        }
    };

    setInterval(GetButton, 5000);

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址