youtube_adblocker_adblocker

YouTube Adblocker Enhancements 🚫🎥

This repository contains a collection of user scripts designed to enhance the YouTube experience by removing unwanted ads and warnings. These scripts are specifically for users who want to skip preroll ads and bypass the “Adblocker detected” warning that appears on YouTube.

Features ✨

Installation Instructions 🔧

Prerequisites

To use these user scripts, you need a browser extension that supports user scripts, such as Tampermonkey or Greasemonkey.

Step-by-Step Guide

  1. Install Tampermonkey (or Greasemonkey) 🧰:
  2. Install the Scripts 📥:
  3. Enable the Scripts 🔄:
    • After installing the scripts, they will automatically be enabled in Tampermonkey or Greasemonkey. You should see them active when visiting YouTube.
  4. Enjoy an Ad-Free YouTube Experience! 🎉

Script Breakdown 🔍

1. Remove YouTube Adblock Warnings

(function() {
    'use strict';
    var player = document.getElementById("movie_player");
    var closeit = setInterval(function() {
        if(document.getElementsByClassName("style-scope ytd-popup-container").length > 0 && document.getElementById("dismiss-button") && document.getElementById("divider")) {
            setTimeout(function(){
                document.getElementById("dismiss-button").click();
                document.getElementsByClassName("ytp-play-button ytp-button")[0].click();
                console.log("banner closed");
                clearInterval(closeit);
            }, 4000);
        }
    }, 300);
})();

YouTube No Preroll Ads (Beta)

Compatibility 💻

License 📄

This project is licensed under the MIT License - see the LICENSE file for details.

Support 💬

Acknowledgments 🙏

Explanation of Sections:

  1. Title and Description: An overview of what the repository and scripts are meant to do with a touch of style.
  2. Features: Clearly highlights the primary functions of the scripts with emojis to make it visually appealing.
  3. Installation Instructions: Walks the user through setting up the scripts step by step, ensuring clarity with helpful emojis.
  4. Script Breakdown: Explains the logic behind each script, including snippets of the code so users can understand how it works.
  5. Compatibility: Informs users about browser compatibility.
  6. Notes: Gives some important disclaimers and information about script limitations.
  7. Contributing: Encourages open-source collaboration with instructions on how users can contribute.
  8. License: Mentions the license type to ensure clarity on usage rights.
  9. Support: Provides a channel for users to ask questions or report issues.

live at https://sk16er.github.io/youtube_adblocker_adblocker/