YouTube Anti-AdBlock Bypass via YouTube Enhancer

A simple method of bypassing YouTube's Anti-AdBlock system using YouTube Enhancer's "Remove Ads" button.

当前为 2023-10-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name YouTube Anti-AdBlock Bypass via YouTube Enhancer
  3. // @namespace https://e-z.bio/yaw
  4. // @version 1.0
  5. // @description A simple method of bypassing YouTube's Anti-AdBlock system using YouTube Enhancer's "Remove Ads" button.
  6. // @author Yaw
  7. // @match https://www.youtube.com/*
  8. // @run-at document-start
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. function checkforbutton() {
  17. const button = document.getElementById("efyt-not-interested");
  18.  
  19. if (button) {
  20. button.click();
  21. console.log("Button found and clicked.");
  22. }
  23. }
  24.  
  25. setInterval(checkforbutton, 1000);
  26. })();