Kick.com - Auto Click "Start Watching" Button

Automatically clicks the "Start Watching" button when it appears on the screen on kick.com

  1. // ==UserScript==
  2. // @name Kick.com - Auto Click "Start Watching" Button
  3. // @namespace Auto start watching
  4. // @version 0.5
  5. // @description Automatically clicks the "Start Watching" button when it appears on the screen on kick.com
  6. // @author Elest
  7. // @match *://kick.com/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function clickStartWatchingButton() {
  16. // First type of button
  17. const buttonsType1 = document.querySelectorAll('button.variant-action.size-sm.base-button');
  18. buttonsType1.forEach(button => {
  19. const innerLabel = button.querySelector('.inner-label');
  20. if (innerLabel && innerLabel.textContent.trim() === 'Start watching') {
  21. button.click();
  22. console.log('Button clicked');
  23. }
  24. });
  25.  
  26. // Second type of button
  27. const buttonType2 = document.querySelector('.justify-between.items-center.w-full.flex > .base-button.size-sm.variant-action > .button-content');
  28. if (buttonType2) {
  29. buttonType2.click();
  30. console.log('Clicked "Start Watching" button');
  31. }
  32. }
  33.  
  34. // Observe the document for changes
  35. const observer = new MutationObserver((mutations) => {
  36. mutations.forEach(() => {
  37. clickStartWatchingButton();
  38. });
  39. });
  40.  
  41. observer.observe(document.body, {
  42. childList: true,
  43. subtree: true
  44. });
  45.  
  46. window.addEventListener('load', clickStartWatchingButton);
  47. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址