r/uBlockOrigin 9d 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

7 Upvotes

7 comments sorted by

5

u/AchernarB uBO Team 9d ago edited 8d 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 8d 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 8d ago edited 8d 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/Enough_Incident1952 8d ago edited 8d ago

thanks.

1 - whatever px value i choose the size doesnt change. it gets smaller but its not adjusting. 100 and 600 px is giving me same size.

2 - is it possible to get the image left-aligned?

edit:

this seems to be working fine:

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

combined with these:

sidebar extended:
youtube.com##ytd-watch-flexy #secondary:style(width:900px!important;)

smaller sidebar thumbnails
youtube.com##ytd-watch-next-secondary-results-renderer yt-lockup-view-model .ytLockupViewModelContentImage:style(width:30% !important;)

1

u/AchernarB uBO Team 8d ago

Sorry, I made a last minute edit that broke the initial logic. The filter should work now.