Greasy Fork

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.

< 脚本 Resize YT To Window Size 的反馈

评价:好评 - 脚本运行良好

§
发布于: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?

Zren作者
§
发布于:2015-05-17
编辑于: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;
}
§
发布于:2015-05-18
编辑于: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.

发布留言

登录以发布留言。