您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide .ytp-ce-element
// ==UserScript== // @name Youtube Hide Ending Overlay // @namespace http://tampermonkey.net/ // @version 0.2 // @description Hide .ytp-ce-element // @author You // @icon https://www.google.com/s2/favicons?domain=youtube.com // @match https://www.youtube.com/* // @grant none // ==/UserScript== (function $$() { 'use strict'; if(!document||!document.documentElement)return window.requestAnimationFrame($$); function addStyle (styleText) { const styleNode = document.createElement('style'); styleNode.type = 'text/css'; styleNode.textContent = styleText; document.documentElement.appendChild(styleNode); return styleNode; } // Your code here... addStyle(` #player #movie_player [class*="ytp-ce-"]{ --userscript-ytp-ce-element-opacity: 0.1; } #player #movie_player [class*="ytp-ce-"]:hover, #player #movie_player [class*="ytp-ce-"]:hover [class*="ytp-ce-"]{ --userscript-ytp-ce-element-opacity: 'NIL'; } #player #movie_player [class*="ytp-ce-covering"]{ opacity: var(--userscript-ytp-ce-element-opacity); transition: opacity 0.3s ease-in-out; } #player #movie_player>.ytp-ce-element{ box-shadow: inset 0px 0px 8px 4px rgb(255 255 255 / 25%); border-color: transparent; } `) })();