您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Overwrites CSS variable of .ardplayer element that creates dark controls.
// ==UserScript== // @name Mediathek Videos // @namespace Video // @version 0.2 // @license MIT // @description Overwrites CSS variable of .ardplayer element that creates dark controls. // @match https://www.ardmediathek.de/* // @match https://www.rbb-online.de/* // @grant none // ==/UserScript== (function() { 'use strict'; function overrideCSSVariable() { const ardPlayer = document.querySelector('.ardplayer'); if (ardPlayer) { // set to transparent ardPlayer.style.setProperty('--ardplayer-color-ui-background-shim', 'rgba(0, 0, 0, 0)'); observer.disconnect(); } } const observer = new MutationObserver(overrideCSSVariable); // start observer for document changes observer.observe(document.documentElement, { childList: true, subtree: true }); })();