YouTube Anti-AdBlock Bypass via YouTube Enhancer

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 :)

目前为 2023-10-21 提交的版本。查看 最新版本

// ==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);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址