您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove the dark overlay from videos
// ==UserScript== // @name VideoPass player fix for MotoGP.com // @namespace http://tampermonkey.net/ // @version 2024-02-08 // @description Remove the dark overlay from videos // @author MotoTiming.live // @match https://*.motogp.com/* // @match http://*.motogp.com/* // @icon https://www.google.com/s2/favicons?domain=mototiming.live // @grant none // @run-at document-idle // ==/UserScript== (function() { 'use strict'; function removeBlackOverlay() { const overlay = document.querySelector(".vjs-background "); const controlBar = document.querySelector(".vjs-control-bar"); if (overlay && controlBar) { overlay.remove(); controlBar.style.backgroundColor = "rgba(0,0,0,0.3)"; console.log('MotoGP video overlay removed'); return true; } return false; } const intervalId = setInterval(function() { const video = document.querySelector('video'); if (video && !video.paused) { if (removeBlackOverlay()) { clearInterval(intervalId); } } }, 1000); })();