Greasy Fork is available in English.

Auto Click Chatbox

This script automatically clicks the "Message Input" button on the sidebar on kick.com when the stream is live.

22.01.2024 itibariyledir. En son verisyonu görün.

// ==UserScript==
// @name        Auto Click Chatbox
// @namespace   https://greasyfork.org/en/users/1200587-trilla-g
// @match       *://*.kick.com/*
// @grant       none
// @version     5.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';

    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 (messageInputButton) {
            messageInputButton.click();
            console.log('Clicked Message Input button.');
        }
    }

    // Function to check URL changes and trigger action
    const checkAndTrigger = () => {
        if (isLive()) {
            clickMessageInput();
        }
    };

    // Observe URL changes using setInterval
    setInterval(checkAndTrigger, 1600); // Check every 1 second (adjust as needed)
})();