Greasy Fork is available in English.

YouTube Sizer

Resizes the YouTube player to smaller sizes

< Valutazione su YouTube Sizer

Domanda/commento

§
Pubblicato: 08/11/2023

Unfortunately, the script only reduces the size of the video player, but doesn't not increase it.
No matter what numbers I replace in the next line
initPref("yt-width", 854);
nothing happens.

§
Pubblicato: 09/11/2023

My system:
- OS: Microsoft Windows [Version 10.0.19045.2673] 64bit
- Browser: Firefox 119.0.1 64bit

John BurtAutore
§
Pubblicato: 09/11/2023

The size only increases to the max size of the video player width with the use of "z" or "x" or "shift+scroll".

§
Pubblicato: 09/11/2023

Thank you for the reply.
Unfortunately, for some unknown reason, no keys ("z", "x") work to resize the video player, only the overlay button can do all the work, though only reducing or returning to the default the video player's size.

John BurtAutore
§
Pubblicato: 09/11/2023

I dynamically get the max size from a CSS style on the webpage so that could be the issue. If you can check the console log for any errors in your web browser that would help me diagnose the issue.

You can manually change the value in the storage settings of the script from your chrome extension you're using to change the width value in the mean time.
Or possibly changing "var maxWidth = getPref("yt-width");" to "var maxWidth = 1000;" or another value you choice.

Changing "initPref("yt-width", 854);" won't work because that initializes the value to 854 in the storage settings and you would have to uninstall the script and reinstall without loading YouTube first to able to change that value.

§
Pubblicato: 09/11/2023

After reducing the size of the video player and reloading the page, the size of the video player became so small that I didn't even be able to click the button to return to the normal size. So I went into the Storage tab of the Edit Youtube Sizer Tampermonkey's page and was forced to change manually "yt-width" to return to the normal size.

§
Pubblicato: 09/11/2023

Modifying "var maxWidth = getPref("yt-width");" to "var maxWidth = 1000;" didn't make any changes, unfortunately.

John BurtAutore
§
Pubblicato: 09/11/2023

I made an update to the code to calculate the maxWidth differently. Hopefully that will fix your issue.

§
Pubblicato: 09/11/2023

Please, insert into the code
@supportURL https://greasyfork.org/en/scripts/421396-youtube-sizer
It would be way convenient for the users to update the script and to know, where to go to get news.

John BurtAutore
§
Pubblicato: 09/11/2023

I was able to update the header to add the @supportURL. I appreciate your help in improving the script.

§
Pubblicato: 09/11/2023

Unfortunately, the new script also does not work, or rather, it works, but only changes the size of the video player from normal to smaller and back from smaller to normal.

§
Pubblicato: 09/11/2023

Again, the keys are not working, only the overlay icon.

§
Pubblicato: 09/11/2023

Here is the video with screencast what happens during script execution attempts.
https://github.com/iG8R/test01/issues/2

John BurtAutore
§
Pubblicato: 09/11/2023

I updated the script so it works better in Firefox.

§
Pubblicato: 09/11/2023

Still the same:(

John BurtAutore
§
Pubblicato: 09/11/2023

Were you able to update it to version 1.93?

§
Pubblicato: 09/11/2023

Yes, it was 1.93 version.

§
Pubblicato: 09/11/2023

Found something.
Large images cannot be uploaded here, so here is an external link:

https://github.com/iG8R/test01/issues/2#issuecomment-1804727637

John BurtAutore
§
Pubblicato: 09/11/2023

If you can clear the webpage cache, and uninstall/reinstall the script maybe that can fix it.

§
Pubblicato: 09/11/2023

I've done it before, but I can do it again.

§
Pubblicato: 09/11/2023

Deleted Youtube's cookies + cache, deleted Youtube-Sizer from Tampermonkey's dashboard and then from its trashcan.
Reloaded Firefox. Still the same result...

§
Pubblicato: 09/11/2023

I booted into a completely new profile, installed only Tampermonkey + YoutubeSizer - the result is the same.

John BurtAutore
§
Pubblicato: 09/11/2023

What's the exact issue?

§
Pubblicato: 09/11/2023

Issue still the same - the video player isn't enlarging, only has two positions - as usual, which is absolutely no different from the size with which Youtube is loaded without any scripts, and "shrunken". And it would be great, if the size of the video player filled the entire screen, and the sidebar with tiles stayed in its usual place, rather than the whole page has huge empty black bars on the sides.

John BurtAutore
§
Pubblicato: 09/11/2023

The script is not designed to make the video player bigger than the original size. It's only possible to resize the player to smaller sizes only.

§
Pubblicato: 10/11/2023
Modificato: 10/11/2023

Sorry, my bad, I thought it could resize the video player to fit the entire viewport area.

John BurtAutore
§
Pubblicato: 10/11/2023

I updated the description to make it more clear. Maybe in the future I can try to add that feature although there are other scripts that I believe do that feature.

§
Pubblicato: 10/11/2023

The thing is that there are no scripts that would fit a video player into a page.
Though, as it turned out, it isn't so difficult - it is enough to change just one parameter:

ytd-watch-flexy[flexy][flexy-enable-large-window-sizing][flexy-large-window_]:not([is-extra-wide-video_]),
ytd-watch-flexy[flexy][flexy-enable-large-window-sizing][flexy-large-window_][transcript-opened_][is-two-columns_]:not([is-extra-wide-video_]),
ytd-watch-flexy[flexy][flexy-enable-large-window-sizing][flexy-large-window_][playlist][is-two-columns_]:not([is-extra-wide-video_]),
ytd-watch-flexy[flexy][flexy-enable-large-window-sizing][flexy-large-window_][should-stamp-chat][is-two-columns_]:not([is-extra-wide-video_]) {
--ytd-watch-flexy-min-player-height:1080px;
}

Pubblica risposta

Accedi per pubblicare una risposta.