Greasy Fork is available in English.

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: 2015-05-17

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: 2015-05-17
Édité le: 2015-05-17

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: 2015-05-18
Édité le: 2015-05-18

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.