您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove the white bottom gradient in the video player control.
// ==UserScript== // @name YouTube - Remove White Bottom Gradient // @namespace https://github.com/Artini04/youtube-remove-white-gradient // @grant none // @match https://www.youtube.com/* // @version 0.2.3 // @author artini04 // @run-at document-end // @description Remove the white bottom gradient in the video player control. // @license GPL-3.0 // ==/UserScript== ;(() => { console.log(`[Remove White Bottom Gradient] Script started!`) const body = document.body const bodyConfig = { childList: true, subtree: true } start() ///////////////// MAIN FUNCTION ////////////////////////// function start() { const bodyObserverListener = () => { if (document.location.href.includes('watch')) { const gradientNode = document.getElementsByClassName('ytp-gradient-bottom')[0] if (!gradientNode) return // Just to be safe! if (gradientNode.hasAttribute('style')) gradientNode.removeAttribute('style') } } // Body Observer const bodyObserver = new MutationObserver(bodyObserverListener) bodyObserver.observe(body, bodyConfig) } })()