您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Unmutes videos on globalnews.ca, which are otherwise muted by default
当前为
// ==UserScript== // @name Global News: Unmute Videos // @description Unmutes videos on globalnews.ca, which are otherwise muted by default // @match https://globalnews.ca/* // @version 0.1 // @author mica // @namespace greasyfork.org/users/12559 // @license MIT // ==/UserScript== const video = () => document.querySelector('iframe.c-video__embed'); const unmute = () => video().contentDocument.querySelector('div[aria-label="Unmute button"]').click(); const observer = new MutationObserver(() => { if (video()) { unmute(); } }); observer.observe(document.body, { childList: true, subtree: true });