YouTube Sizer

Resizes the YouTube player to smaller sizes

< Відгуки до YouTube Sizer

Question/comment

§
Опубліковано: 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.

§
Опубліковано: 09.11.2023

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

John BurtАвтор
§
Опубліковано: 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".

§
Опубліковано: 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 BurtАвтор
§
Опубліковано: 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.

§
Опубліковано: 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.

§
Опубліковано: 09.11.2023

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

John BurtАвтор
§
Опубліковано: 09.11.2023

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

§
Опубліковано: 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 BurtАвтор
§
Опубліковано: 09.11.2023

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

§
Опубліковано: 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.

§
Опубліковано: 09.11.2023

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

§
Опубліковано: 09.11.2023

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

John BurtАвтор
§
Опубліковано: 09.11.2023

I updated the script so it works better in Firefox.

§
Опубліковано: 09.11.2023

Still the same:(

John BurtАвтор
§
Опубліковано: 09.11.2023

Were you able to update it to version 1.93?

§
Опубліковано: 09.11.2023

Yes, it was 1.93 version.

§
Опубліковано: 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 BurtАвтор
§
Опубліковано: 09.11.2023

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

§
Опубліковано: 09.11.2023

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

§
Опубліковано: 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...

§
Опубліковано: 09.11.2023

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

John BurtАвтор
§
Опубліковано: 09.11.2023

What's the exact issue?

§
Опубліковано: 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 BurtАвтор
§
Опубліковано: 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.

§
Опубліковано: 10.11.2023
Edited: 10.11.2023

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

John BurtАвтор
§
Опубліковано: 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.

§
Опубліковано: 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;
}

Опублікувати відповідь

Sign in to post a reply.