您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make Facebook Reel: Video Controls
当前为
// ==UserScript== // @name Facebook Reel: Video Controls // @namespace UserScript // @match https://www.facebook.com/* // @version 0.1.0 // @license MIT // @author CY Fung // @description Make Facebook Reel: Video Controls // @run-at document-start // @grant none // @unwrap // ==/UserScript== document.addEventListener('play', (evt) => { const target = (evt || 0).target; if (target instanceof HTMLVideoElement) { if (target.hasAttribute('controls')) return; if (location.href.indexOf('reel') < 0) return; let buttonLayer = target.closest('div[class][role="button"][tabindex]'); if (!buttonLayer) return; target.setAttribute('controls', ''); setTimeout(() => { Object.assign(target.style, { 'position': 'relative', 'zIndex': 999, 'pointerEvents': 'all' }); let arr = [...buttonLayer.querySelectorAll('.x10l6tqk.x13vifvy')].filter(elm => !elm.contains(target)); for (const s of arr) { Object.assign(s.style, { 'pointerEvents': 'none' }); } }, 1) } }, true)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址