您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bypass all youtube ads including in video ads, skipable and non-skipable Ads
当前为
// ==UserScript== // @name Youtube Ad Cleaner(Include Non-Skipable Ads) // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js // @namespace http://tampermonkey.net/ // @version 1.1 // @description Bypass all youtube ads including in video ads, skipable and non-skipable Ads // @author BjD // @match https://www.youtube.com/* // ==/UserScript== // The script runs in the backgound, monitoring all youtube ads. // When non-skipable ads are found, the script will redirect the browser to previous page and then revisits the current URL. // Depends on the amount of non-skipable ads, the browser may refresh couple times automatically. function startMonitor(){ console.log('Monitoring Youtube Ads'); setInterval(function(){KillNoSkipAd()}, 2000); setInterval(function(){killInVideoAd()}, 2000); setInterval(function(){killAd()}, 2000); } startMonitor(); function killAd(){ if ($(".videoAdUiRedesign")[0]){ $(".video-stream").attr("src", ""); } $("#player-ads").remove(); $("#masthead-ad").remove(); $("#offer-module").remove(); $(".video-ads").remove(); $("#pyv-watch-related-dest-url").remove(); } function KillNoSkipAd(){ if ($('.ad-showing') [0] !=undefined){ console.log('No Skip Ad caught'); var currentVideoURL = window.location.href; window.history.back(); window.location.href = currentVideoURL; } } function killInVideoAd(){ if ($(".video-ads")[0] !=undefined){ console.log('In Video Ads caught'); $(".video-ads").remove(); } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址