您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically claim community points.
当前为
- // ==UserScript==
- // @name Twitch Auto Community Points Claimer
- // @version 1.2
- // @author PartMent
- // @description Automatically claim community points.
- // @author PartMent
- // @match https://www.twitch.tv/*
- // @license MIT
- // @grant none
- // @namespace https://greasyfork.org/users/310437
- // ==/UserScript==
- var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
- if (MutationObserver) console.log('Auto claimer is enabled.');
- var observer = new MutationObserver(function(mutations) {
- setTimeout(function () {
- var bonus = document.getElementsByClassName('claimable-bonus__icon');
- for (var i = 0;i<bonus.length;i++) {
- if (i == 0) console.log('Claimed!');
- bonus[i].click();
- }
- }, 3000);
- });
- observer.observe(document.body, {childList: true, subtree: true});