您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
6/3/2024, 1:04:59 AM
// ==UserScript== // @name hide twitter video controls (until hover) // @namespace Violentmonkey Scripts // @match https://x.com/* // @grant none // @version 1.0 // @author minnieo // @description 6/3/2024, 1:04:59 AM // @license MIT // ==/UserScript== document.addEventListener("DOMContentLoaded", () => { const videoControls = document.querySelector('div[data-testid="videoComponent"] div.css-175oi2r.r-18u37iz.r-n7gxbd'); videoControls.style.display = 'none'; if (videoControls) { // Check if videoControls exists // Show controls when the mouse enters the area videoControls.addEventListener('mouseenter', () => { videoControls.style.display = 'block'; }); // Hide controls when the mouse leaves the area videoControls.addEventListener('mouseout', () => { videoControls.style.display = 'none'; }); } else { console.error('Video controls element not found.'); } });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址