Greasy Fork is available in English.

Resize YT To Window Size

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

< Resize YT To Window Sizeについてのフィードバック

質問/コメント

§
投稿日: 2020/04/30

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

Zren作者
§
投稿日: 2020/04/30

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'

§
投稿日: 2020/05/05

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

Zren作者
§
投稿日: 2020/05/05

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

§
投稿日: 2020/05/05

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!!

Zren作者
§
投稿日: 2020/05/05

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?

§
投稿日: 2020/05/05
  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

返信を投稿

返信を投稿するにはログインしてください。