Greasy Fork is available in English.
Removes all ads including video ads/recomended ads/poster ads/mid video ads.
当前为
// ==UserScript==
// @name Remove Youtube Ads (Working)
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Removes all ads including video ads/recomended ads/poster ads/mid video ads.
// @author Wrekt/Ethan
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
var advideo = "false";
$("a").click(function(){
location.reload();
});
if ($(".ad-showing")[0]){
advideo = "true";
} else {
advideo = "false";
}
(function() {
$("#header").remove();
})();
setTimeout(function removead() {
$("#watch7-sidebar-ads").remove();
if (advideo == "true") {
$(".video-stream").attr("src", "");
}
}, 500);
setTimeout(function removeads() {
if (advideo == "true") {
$(".video-stream").attr("src", "");
}
}, 800);
setTimeout(function removeadss() {
$(".video-ads").remove();
$("#pyv-watch-related-dest-url").remove();
}, 6500);