您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Cleans up Prime Video player: removes X-Ray, black shadow overlays, and PiP button.
// ==UserScript== // @name Prime Video - X-ray/Shadow Removal // @namespace PV - X/SR // @version 1.1 // @description Cleans up Prime Video player: removes X-Ray, black shadow overlays, and PiP button. // @author Lone Strider // @match *://*.primevideo.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=primevideo.com // @run-at document-body // @grant none // ==/UserScript== (function() { 'use strict'; const STYLE_ID = "pv-cleanup-style"; const css = ` /* Hide X-Ray quick view overlay */ .atvwebplayersdk-player-container .hideUntilCssLoaded .xrayQuickView { display: none !important; } /* Remove black shadow/overlay backgrounds (current hashed classes) */ .fkpovp9, .f1makowq, .f10i0hvc, .fvtlr3b { background: none !important; } /* Hide PiP button */ #pip-button { display: none !important; } `; function injectStyle() { if (!document.getElementById(STYLE_ID)) { const style = document.createElement("style"); style.id = STYLE_ID; style.textContent = css; document.head.appendChild(style); } } // Inject initially injectStyle(); // Re-inject if SPA nav or DOM rebuild removes styles new MutationObserver(injectStyle).observe(document.documentElement, { childList: true, subtree: true }); })();