Skip to content

Player Container Fix by Rubiloy

Details

AuthorRubiloy

LicenseMIT

Categoryyoutube.com

Created

Updated

Size725 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Fixes the player container size, now fitting the full video and its icons

(Important! Check out the Notes section)

Notes

Mostly works with 16:9 or similar aspect ratios, some might break.

Changing the page scale or having a different scale on Windows resolution other than 125% will break as well. Feel free to change the fixed values on my code to fit your monitor.

Source code

/* ==UserStyle==
@name         Player Container Fix
@version      20240412.10.28
@namespace    https://userstyles.world/user/Rubiloy
@description  Fixes the player container size, now fitting the full video and its icons
@author       Rubiloy
@license      MIT
==/UserStyle== */

@-moz-document domain("youtube.com") {
    ytd-watch-flexy {
        #columns #primary.ytd-watch-flexy{
            max-width: 914px;
            width: 914px;
        }

        #primary #player-container-outer.ytd-watch-flexy {
            min-width: 914px;
        }
    }
    ytd-watch-next-secondary-results-renderer {
        #video-title.ytd-rich-grid-media {
            width: 200px;
            word-wrap: break-word;
        }
    }
}

Reviews

No reviews yet.