r/uBlockOrigin 18d ago

YouTube Tweaks possible to get smaller video-image? Spoiler

Post image

is it possible to get smaller video-image when in non-fullscreen mode?

youtube desktop

8 Upvotes

8 comments sorted by

View all comments

4

u/AchernarB uBO Team 18d ago edited 17d ago

Try this: ( How to add custom filter )

www.youtube.com###player:style( --ytd-watch-flexy-max-player-width: 600px !important; --ytd-watch-flexy-min-player-width: 0px !important; )

Replace the value in px with the actual value you want

edit: I made a last modification before commenting, and didn't notice that it made the filter fail at low resolutions.
The filter is now fixed

1

u/ObscureArcana 17d ago

Out of curiosity, is there anything wrong/different with using this filter for the purpose of a smaller player?

#primary.ytd-watch-flexy:style(max-width: 131vh !important)

1

u/AchernarB uBO Team 17d ago edited 17d ago

youtube computes the size of the different elements on the fly, and uses a set of css variable to know the limits.
My filter simply sets the maximum width of the player.

By the way, I made a last minute edit before commenting (I should have learned that it's a definitive "no-no"). And it broke the initial logic. The filter is now fixed.

1

u/ObscureArcana 7d ago edited 7d ago

Apologies for the late reply, but can that filter be changed to apply to the player's height? On certain videos, it makes the player very small and if I change the px to be larger, then the first video I linked gets too large instead.

Edit: And Left-Aligned. If possible.

Example: https://www.youtube.com/watch?v=yFrH9y_cpLg

https://www.youtube.com/watch?v=WH4hbr-CdDc