Resize YT To Window Size

Moves the YouTube video to the top of the website and fill the window with the video player.

< Opiniones de Resize YT To Window Size

Pregunta o comentario

§
Publicado: 30/04/2020

is there any hotkey to turned it off/on?

is there any hotkey to turned it off/on? i still want to watch some video on youtube in usual size

ZrenAutor
§
Publicado: 30/04/2020

Toggle the script and refresh the page?

Or write a small script like this that runs:

document.body.classList.toggle('ytwp-window-player')

Eg: e.key == 'w'

§
Publicado: 05/05/2020

thanks for the reply, i'm not an advance user, so i don't understand how to add that command line to the script. is there any plan to add this "hotkey feature" to the next future update? so we can turn it on/off while watching, and doesnt have to reload the page. since i usually just use this feature to watch long videos. and having full browser size when watching short videos is not that good. thank you in advance

ZrenAutor
§
Publicado: 05/05/2020

It's actually a little more complicated than I thought as I have a setInterval timer that tries to enter youtube's default "theater mode" every 1 second.

I don't really want to add a shortcut as it might conflict with another youtube extension, but I might as well add it then wait for complaints.

Here's something to test with. Not gonna roll it out until I've tested for a few days though.

https://gist.github.com/Zren/0dc87c98df66c714a7c3e1f3324cd3af

§
Publicado: 05/05/2020

hi, thanks for the reply. it actually works for me. though i have some minor bugs,

  1. full windows size is on as a default page loaded (maybe some user want it to be off as default and press the hotkey if want to load full window.

  2. the script is not compatible with other youtube script that im using right now, good thing the other script has hotkey to turn it off, so i turned off the other script first, and then pressed the hotkey for this script to load the full browser window, and then turn on the other script back after the video goes full window.

hope this review help. right now im just happy with this script as it is. thank you so much for the solution!!

ZrenAutor
§
Publicado: 05/05/2020

1. I'm not gonna create a persistent toggle setting. Sorry. You can delete the line where it adds the body class that the shortcut toggles though.

https://gist.github.com/Zren/0dc87c98df66c714a7c3e1f3324cd3af#file-resizeyt-shortcuttest-user-js-L595

2. Which youtube script does it not work with?

§
Publicado: 05/05/2020
  1. im not advanced user, so i don't know which line and how to edit it.

  2. this script don't compatible with your script, but it has toogle key to turn it on/off.

https://greasyfork.org/scripts/381682

Publicar respuesta

Inicia sesión para responder.