Automatically clicks the "Start Watching" button when it appears on the screen on kick.com
// ==UserScript== // @name Kick.com - Auto Click "Start Watching" Button // @namespace Auto start watching // @version 0.5 // @description Automatically clicks the "Start Watching" button when it appears on the screen on kick.com // @author Elest // @match *://kick.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function clickStartWatchingButton() { // First type of button const buttonsType1 = document.querySelectorAll('button.variant-action.size-sm.base-button'); buttonsType1.forEach(button => { const innerLabel = button.querySelector('.inner-label'); if (innerLabel && innerLabel.textContent.trim() === 'Start watching') { button.click(); console.log('Button clicked'); } }); // Second type of button const buttonType2 = document.querySelector('.justify-between.items-center.w-full.flex > .base-button.size-sm.variant-action > .button-content'); if (buttonType2) { buttonType2.click(); console.log('Clicked "Start Watching" button'); } } // Observe the document for changes const observer = new MutationObserver((mutations) => { mutations.forEach(() => { clickStartWatchingButton(); }); }); observer.observe(document.body, { childList: true, subtree: true }); window.addEventListener('load', clickStartWatchingButton); })();