您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
It claims the bonus channel points. Checks every 5 seconds.
// ==UserScript== // @name Twitch Channel Points Collector // @version 1.1 // @description It claims the bonus channel points. Checks every 5 seconds. // @author MrMike // @namespace MrMike/Twitch // @match https://*.twitch.tv/* // @grant none // @noframes // ==/UserScript== (function () { "use strict"; function executeCode(f) { var script = document.createElement("script"); script.id = "injectedScript"; script.appendChild(document.createTextNode(`(${f.toString()})()`)); (document.body || document.head || document.documentElement).appendChild(script); } executeCode(() => { function claimBonus() { let cbi = document.getElementsByClassName("claimable-bonus__icon"); if (cbi.length > 0) { setTimeout(() => { cbi[0].click(); }, 250); } } setInterval(claimBonus, 5000); }); })();