您需要先安装一个扩展,例如 篡改猴、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/#!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:
Things still to do:
Things I can't do (if you know how to do any of these things, let me know):