您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto-claim Truffle.TV channel points
// ==UserScript== // @name Truffle.TV Auto Claimer // @namespace https://github.com/whqwert/userscripts // @version 1.2.0 // @description Auto-claim Truffle.TV channel points // @author whqwert // @match https://new.ludwig.social/channel-points // @match https://*.truffle.site/channel-points // @icon https://cdn.bio/assets/images/branding/logomark.svg // @supportURL https://github.com/whqwert/userscripts/issues // @license MIT // @grant none // ==/UserScript== (function () { 'use strict'; new MutationObserver((_, o) => { if (document.getElementById('root')) { o.disconnect(); autoClaim(); } }).observe(document.body, { childList: true, subtree: true }); function autoClaim() { const shadow = document.getElementById('root').firstChild.shadowRoot; new MutationObserver(() => { const claim = shadow.querySelector('.claim'); if (claim) claim.click(); }).observe(shadow, { childList: true, subtree: true }); } })();