您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Moves the controls under the video and makes the UI look like it was before august 2015
当前为
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/#!RUw3zADT!JaRR7h4jwYVsrX_OqK5scvcLg4tUVfaCr_nJV21taUk (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, and to url's with the word "ui_fix_settings" in them. https://www.youtube.com/account_playback https://www.youtube.com/ui_fix_settings https://www.youtube.com/embed/ui_fix_settings https://www.youtube-nocookie.com/embed/ui_fix_settings https://youtube.googleapis.com/embed/ui_fix_settings
Note that the settings are separate for the three different domains (www.youtube.com, www.youtube-nocookie.com, and youtube.googleapis.com).
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 UI Fix is present 1");
}
// or using the style element
if (document.getElementById("YoutubeNewUIFix-Style") !== null)
{
alert("YouTube UI Fix is present 2");
}
/* in CSS */
.yt-ui-fix
{
/* background is red if YouTube UI Fix is present */
background-color: red;
}
Features:
Things still to do:
Things I can't do (if you know how to do any of these things, let me know):