A simple method of bypassing YouTube's AdBlock Detection using YouTube Enhancer's "Remove Ads" button. Does not require the use of any external website like similar tools do :)
当前为
// ==UserScript==
// @name YouTube Anti-AdBlock Bypass via YouTube Enhancer
// @namespace https://e-z.bio/yaw
// @version 1.1
// @description A simple method of bypassing YouTube's AdBlock Detection using YouTube Enhancer's "Remove Ads" button. Does not require the use of any external website like similar tools do :)
// @author Yaw
// @match https://www.youtube.com/*
// @run-at document-start
// @license MIT
// @grant none
// ==/UserScript==
(function() {
'use strict';
var searchInterval = 800
function checkForButton() {
const currentURL = window.location.href;
// match pattern url - credits: Zion
if (/https:\/\/www\.youtube\.com\/watch\?.*/.test(currentURL)) {
const button = document.getElementById("efyt-not-interested");
if (button) {
button.click();
} else {
console.log("[Bypass] Failed to find button. Retrying in ", searchInterval, " ms")
}
}
}
setInterval(checkForButton, searchInterval);
})();