您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace gradient red-pink color in YouTube player to just old good red
// ==UserScript== // @name YouTube pink progress bar remover // @namespace http://tampermonkey.net/ // @version 0.5 // @description Replace gradient red-pink color in YouTube player to just old good red // @match https://www.youtube.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const replaceGradient = () => { const styleElement = document.createElement('style'); styleElement.textContent = ` .ytp-play-progress { background: #f00 !important; } .ytp-cairo-refresh .ytp-swatch-background-color { background-color: #f00 !important; /* lub inny kolor, który chcesz */ } `; document.head.appendChild(styleElement); }; // DOM Observer const observer = new MutationObserver((mutations) => { mutations.forEach(() => { const progressBar = document.querySelector('.ytp-play-progress'); const swatchBackground = document.querySelector('.ytp-cairo-refresh .ytp-swatch-background-color'); if (progressBar || swatchBackground) { replaceGradient(); observer.disconnect(); } }); }); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址