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-20 提交的版本,檢視 最新版本

// ==UserScript==
// @name         YouTube Anti-AdBlock Bypass via YouTube Enhancer
// @namespace    https://e-z.bio/yaw
// @version      1.0
// @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';

    function checkforbutton() {
        const button = document.getElementById("efyt-not-interested");

        if (button) {
            button.click();
            console.log("Button found and clicked.");
        }
    }

    setInterval(checkforbutton, 1000);
})();