您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
For youtube. Shift subtitles under a video.
// ==UserScript== // @name Subtitles under video // @namespace http://tampermonkey.net/ // @version 0.0.2 // @description For youtube. Shift subtitles under a video. // @author Andrei Balashov // @match https://*.youtube.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // @grant GM_addStyle // @run-at document-start // @license MIT // ==/UserScript== (() => { 'use strict'; document.addEventListener('DOMContentLoaded', e => { // after the DOM has loaded // silently fails in Firefox if placed outside when `document-start` GM_addStyle( `.ytp-gradient-bottom{ display: none !important; } ytd-watch-flexy[default-layout] ytd-player{ height: calc(100% + 130px); } ytd-watch-flexy[default-layout] #player{ margin-bottom: 130px; } ytd-watch-flexy[theater]:not([fullscreen]) ytd-player{ height: calc(100% + 150px); } ytd-watch-flexy[theater]:not([fullscreen]) #full-bleed-container{ margin-bottom: 150px; } .html5-video-container > video{ top: 0px !important; } ytd-player{ background-color: #6a6a6a; }` ); }); })();