Greasy Fork is available in English.

Youtube New UI Fix

Moves the controls under the video and makes the UI look like it was before august 2015

Version au 24/10/2016. Voir la dernière version.

Auteur
Roy192
Notes
0 0 0
Version
2.3.1
Créé
05/08/2015
Mis à jour
24/10/2016
Licence
N/A
S'applique à

This user-script is based on my user-style on userstyles.org (Youtube Controls Under Player). Sadly enough a user-style is not going to cut it to cleanup the garbage Youtube has made (again). The main problem was that the time did not update when not hovering over the controls. This script solves that by adding an interval that calls the onmousemove event of the controls.

This script was originally written in typescript and compiled to plain javascript, if you want to see the original https://mega.nz/#!cJwCQDoI!elZQnuvqqQXKh8P6pzrV8oo5uAxU56RRGkFSGkzoqFM (link might go down because MEGA removes it sometimes)

To customize the script a little, I've added a few checkboxes to the playback settings page on youtube: https://www.youtube.com/account_playback

If for some reason you need to check if this script is active (for compatibility with another script for example), you can check for the "yt-ui-fix" class on the body element, or look for a script tag with YoutubeNewUIFix-Style as the id.

if (document.body.classList.contains("yt-ui-fix"))
{
    alert("youtube new ui fix is present 1");
}
// or using the style element
if (document.getElementById("YoutubeNewUIFix-Style") !== null)
{
    alert("youtube new ui fix is present 2");
}

// in CSS
.yt-ui-fix
{
    // background is red if youtube new ui fix is present
    background-color: red;
}

Features:

  • Non-transparent controls
  • Controls are not over the video
  • Controls don't hide at all
  • Controls have the old colors back
  • Controls are smaller (35px vs 40px)
  • Controls will update, they won't freeze until you hover over them
  • Option: disable animations (the expanding of the context menu when changing the quality)
  • In full-screen mode, the controls are also always visible, original colors, and they are smaller (35px again)
  • Option: revert the colors to their original light-gray on dark-gray (instead of the white on black/transparent). Can be enabled for fullscreen, non-fullscreen, both, or none
  • Option: re-enable auto-hide only in full-screen
  • Subtitles don't move up and down when going over the video
  • Controls are smaller in full-screen
  • Option: move the watch later button to the controls (next to the subtitles button at the bottom)
  • Works for embedded videos, but the height is not adjusted and will make the videos slightly smaller than intended.
  • Option: move the 'go back' button on the settings menus to the bottom (default off).
  • Option: makes the progressbar take up all the width (but only when not hovering over it). Thanks to Takato for this.
  • Option: makes the title appear when hovering over the video. Thanks to q1k for this.
  • Option: make the volume slider always visible.

Things still to do:

  • Update screenshots (minor changes in size/location of buttons)

Things I can't do (if you know how to do any of these things, let me know):

  • Change the width of the progress bar without bugging it out (works now when not hovering over)
  • Increase the height on embedded videos