您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
// ==UserScript== // @name 動畫瘋廣告be quite! // @namespace 動畫瘋廣告be quite! // @version 1.0 // @description try to take over the world! // @author fmnijk // @match https://ani.gamer.com.tw/animeVideo.php?sn=* // @require https://unpkg.com/[email protected]/xfetch.min.js // @grant none // ==/UserScript== (window.onload = function() { 'use strict' const css = document.createElement('style') document.querySelector('.anime-ad').setAttribute("hidden", true); var total = 0 function myFunction() { total += 30 if(total < 3000){ if($('#ani_video_ima-ad-container video')[0] == undefined){ setTimeout(() => myFunction(), 30) } else{ $('#ani_video_ima-ad-container video')[0].muted = true; if($('#ani_video_ima-ad-container video')[0].getAttribute('src') != 'https://fmnijk.github.io/black.mp4'){ $('#ani_video_ima-ad-container video')[0].setAttribute('src', 'https://fmnijk.github.io/black.mp4') $('#ani_video_ima-ad-container video')[0].playbackRate = 8.0; } setTimeout(() => myFunction(), 30) } } } myFunction() let tryCount = 0 function tryUntilAniVideoIsOk() { tryCount++ if (typeof ani_video === 'undefined' || typeof ani_video.on === 'undefined') { if (tryCount > 20) { alert('跳過動畫瘋廣告腳本需要動畫瘋工具箱才能運作,請安裝') window.open( 'https://greasyfork.org/zh-TW/scripts/39136-%E5%8B%95%E7%95%AB%E7%98%8B%E5%B7%A5%E5%85%B7%E7%AE%B1', '_blank' ) } else { setTimeout(tryUntilAniVideoIsOk, 1000) } return } ani_video.on('vast.adStart', () => { if (document.querySelector('.vast-blocker')) { document.querySelector('#ani_video_html5_api').setAttribute('src', 'https://fmnijk.github.io/black.mp4'); document.querySelector('#ani_video_html5_api').play(); } }) } tryUntilAniVideoIsOk(); })()