YouTube - Always Theater Mode

Set the default viewing mode to Theater Mode.

< Opinie na YouTube - Always Theater Mode

Ocena: OK - skrypt działa, ale ma błędy

§
Napisano: 02-01-2024

Sometimes, it doesn't always work as I noticed that the video is still small but it seems to happen infrequently. It could be a thing on YouTube's end as before I switched to this script, the extensions I used to use stopped working a week or so ago. Beyond that, it's been alright.

document.addEventListener("yt-navigate-finish", function(event) {
  setTimeout(()=> {
    var newPlayer = document.querySelector('button.ytp-size-button')
    if ( newPlayer && !document.querySelector('ytd-watch-flexy').hasAttribute('full-bleed-player') ) {
      newPlayer.click()
    }
  }, 600)
})
r-a-yAutor
§
Napisano: 02-01-2024

Try CY Fung's fix. If that doesn't work, bump the 600 figure up to 750 and see if that works for you.

Odpowiedz

Zaloguj się, by odpowiedzieć.

长期地址
遇到问题?请前往 GitHub 提 Issues。