Resize YT To Window Size

Moves the YouTube video to the top of the website and fill the window with the video player.

< Σχολιασμός για τον κώδικα Resize YT To Window Size

Αναφορά: Καλός - ο κώδικας λειτουργεί

§
Δημοσιεύτηκε: 17/05/2015

Disable Auto-hide progress bar and controls

Like the title says, is there a way to always show the controls and progress bar?

ZrenΔημιουργός
§
Δημοσιεύτηκε: 17/05/2015
Επεξεργάστηκε: 17/05/2015

If you're still using the old player, you can comment out this line:

https://github.com/Zren/ResizeYoutubePlayerToWindowSize/blob/master/153699.user.js#L551

The new player auto hides by default since the controls are a transparent overlay. You could use Stylish or something and apply the following CSS rules:

.ytp-autohide .ytp-chrome-top,
.ytp-autohide:not(.ytp-watch-controls) .ytp-chrome-bottom, 
.ytp-chrome-top[aria-hidden=true],
.ytp-chrome-bottom[aria-hidden=true] {
    opacity: 1;
}
.ytp-gradient-top[aria-hidden=true],
.ytp-gradient-bottom[aria-hidden=true],
.ytp-autohide .ytp-gradient-top,
.ytp-autohide .ytp-gradient-bottom {
  opacity: 1;
}
§
Δημοσιεύτηκε: 18/05/2015
Επεξεργάστηκε: 18/05/2015

Commenting out that line worked. Thanks a lot. Thanks for the CSS style, too. I'll use that when I get switched over to the new player.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.