Resize YT To Window Size

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

< Commentaires sur Resize YT To Window Size

Avis: Bon - le script fonctionne correctement

§
Posté le: 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?

ZrenAuteur
§
Posté le: 17/05/2015
Édité le: 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;
}
§
Posté le: 18/05/2015
Édité le: 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.

Poster une réponse

Connectez-vous pour poster une réponse.