Click Video To Pause

Userscript that enables pause on click for kick.com video player

  1. // ==UserScript==
  2. // @name Click Video To Pause
  3. // @description Userscript that enables pause on click for kick.com video player
  4. // @version 13.0
  5. // @grant none
  6. // @author Trilla_G
  7. // @match *://kick.com/*
  8. // @namespace https://gf.qytechs.cn/en/users/1200587-trilla-g
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. window.addEventListener('click', (event) => {
  13. // Target the video player using the ID selector
  14. const videoElement = document.getElementById('video-player');
  15.  
  16. // Check if the clicked target is the video player
  17. if (event.target === videoElement) {
  18. if (!videoElement.paused) {
  19. videoElement.pause(); // Pause the video if it is playing
  20. }
  21. }
  22. });
  23.  

QingJ © 2025

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