您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script automatically clicks the "Message Input" button on the sidebar, on kick.com when the stream is live.
当前为
// ==UserScript== // @name Auto Click Chatbox // @namespace https://gf.qytechs.cn/en/users/1200587-trilla-g // @match *://*.kick.com/* // @grant none // @version 7.0 // @license MIT // @author Trilla_G // @description This script automatically clicks the "Message Input" button on the sidebar, on kick.com when the stream is live. // ==/UserScript== (function() { 'use strict'; let clicked = false; function isLive() { let liveDisplay = document.querySelector(".vjs-live-control"); return liveDisplay && !liveDisplay.classList.contains('vjs-hidden'); } function clickMessageInput() { let messageInputButton = document.querySelector('#message-input'); if (isLive() && messageInputButton && !clicked) { messageInputButton.click(); clicked = true; } } // Function to observe URL changes using MutationObserver const observeUrlChanges = () => { let currentUrl = window.location.href; const observer = new MutationObserver(mutationsList => { const newUrl = window.location.href; if (newUrl !== currentUrl && newUrl.includes('kick.com')) { clicked = false; // Reset the clicked flag on URL change currentUrl = newUrl; setTimeout(clickMessageInput, 1600); // 1.6-second delay before the click after URL change } }); // Start observing changes to the attributes of the document's body observer.observe(document.body, { attributes: true, subtree: true }); // Cleanup observer on page unload window.addEventListener('beforeunload', () => observer.disconnect()); }; // Initial run of the script setTimeout(clickMessageInput, 1600); // 1.6-second delay before the initial click // Initial observation of URL changes observeUrlChanges(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址