Greasy Fork is available in English.

s Disable YouTube Channel / User Home Page Video AutoPlay 2024 May

Disable the video autoplay at YouTube channel/user home page

  1. // ==UserScript==
  2. // @name s Disable YouTube Channel / User Home Page Video AutoPlay 2024 May
  3. // @namespace DisableYouTubeChannelUserHomePageVideoAutoPlayFork
  4. // @version 3
  5. // @description Disable the video autoplay at YouTube channel/user home page
  6. // @match *://*.youtube.com/*
  7. // @grant none
  8. // @run-at document-start
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
  10. // @license Public domain
  11. // ==/UserScript==
  12.  
  13. (() => {
  14. console.log(`${GM.info.script.name} run`)
  15. var u
  16. var r=_=>{
  17. var v=document.location.href.match(/:\/\/[^\/]+\/(((c(hannel)?|u(ser)?)\/)|@)[^\/]+(\/(about|featured)?)?(\?|$)/)
  18. if(u!==v){
  19. u=v
  20. ;[...document.querySelectorAll(`video`)].map(x=>{
  21. x.pause()
  22. x.volume=0
  23. debugger
  24. })
  25. }
  26. setTimeout(r,500)
  27. }
  28. r()
  29. })();