您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自動把廣告禁音
// ==UserScript== // @name 動畫瘋廣告禁音 // @namespace http://tampermonkey.net/ // @version 0.3 // @description 自動把廣告禁音 // @author axzxc1236 // @match https://ani.gamer.com.tw/animeVideo.php?sn=* // @grant unsafeWindow // @require https://code.jquery.com/jquery-3.4.1.slim.min.js#md5=d9b11ca4d877c327889805b73bb79edd,sha256=a5ab2a00a0439854f8787a0dda775dea5377ef4905886505c938941d6854ee4f // @require https://gf.qytechs.cn/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012#md5=fd6775a03daee426e576e1394ab2a3b4,sha256=e582c20607e3e723a2e2437ca0546570b1531bf302d4a89cbd99964ccd73e995 // ==/UserScript== (function() { 'use strict'; // Your code here... waitForKeyElements("#adSkipButton", btn => { const video = videojs(document.querySelector("#ani_video")); console.log("<info> detect AD button."); video.muted(true); console.log("<info> video muted."); video.on("durationchange", unmute) }, true) waitForKeyElements(".VPAID-container", () => { const video = videojs(document.querySelector("#ani_video")); console.log("<info> 3rd party AD detected."); video.muted(true); console.log("<info> video muted."); video.on("durationchange", unmute) }, true) function unmute() { const video = videojs(document.querySelector("#ani_video")); if (document.querySelector("#adSkipButton") || document.querySelector(".VPAID-container")) return; video.muted(false); console.log("<info> video un-muted."); //Fix visual error in volume bar. let percentage = video.volume()*100; document.querySelector(".vjs-volume-level").style.width = percentage.toString() + "%"; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址