DEV Community

Kanani Nirav
Kanani Nirav

Posted on • Updated on

YouTube AdBlocker: The Ultimate Solution to Blocking Ads on Chrome, Microsoft Edge, and Firefox

Currently, YouTube tries to force us to watch ads by showing a message that says “Ad blockers are not allowed on YouTube”. Here is the solution that effectively blocks YouTube ads, and ad-blocker detection popups, and gives you an ad-free experience.

GitHub Repository: Youtube-AdBlocker

If you find this helpful, please give a star to the above repository and share it with your friends. Your support is greatly appreciated!

Installation Steps

Chrome

  • Type chrome://extensions/ in the address bar of Chrome and press Enter.

  • Enable Developer mode: Toggle the Developer mode switch at the top right of the Extensions page.

  • Load the extension: Click on the Load unpacked button and select the folder where you extracted the extension files or drag the folder.

  • Confirm installation: Confirm that the extension is now listed on the Extensions page and is enabled.

Microsoft Edge

  • Access Extensions Menu: Click on the three horizontal dots in the upper-right corner to open the menu and select Extensions from the menu.

  • Enable Developer Mode: Scroll down on the Extensions page and find the Developer mode toggle switch. Turn on Developer mode.

  • Load the Extension: Click on the Load unpacked button that appears after enabling Developer mode. Navigate to the folder where the extension files are located and select the extension's folder or drag the folder.

  • Confirm Installation: Confirm that the extension is now listed on the Extensions page and is enabled.

Mozilla Firefox (https://addons.mozilla.org/en-GB/firefox/addon/youtube-adblocker-free/)

Install from a store or follow the below steps for local installation.

  • Access the Add-ons (Extensions) Manager:

    • Click on the three horizontal lines in the upper-right corner to open the menu.
    • Select Add-ons from the menu.
  • Enable Developer Mode:

    • In the Add-ons Manager, click on the gear icon (settings) in the top right corner.
    • Choose Choose Debug Add-ons
    • Turn on the Enable add-on debugging and Enable extension debugging options.
  • Load the Extension:

    • Click on Load Temporary Add-on
    • Navigate to the folder where the extension files are located and select the extension’s manifest.json file
  • Manage Extension Settings:

    • In the Add-ons Manager, click on the three horizontal dots next to the extension you installed. Choose “Manage”
    • Under Permissions, enable (*://youtube.com, *://www.youtube.com, *://m.youtube.com) toggle button
  • Confirm Installation: Confirm that the extension is listed on the Add-ons Manager page and is enabled.

Open YouTube in a new tab and verify whether the extension is working as expected.

I’ve confirmed the installation steps provided above and the extension works seamlessly. It effectively blocks YouTube ads and prevents ad-blocker detection popups, ensuring an uninterrupted and ad-free browsing experience.

If You are using Medium Please support and follow me for interesting articles. Medium Profile

Subscribe to My Newsletter:

If you're ready to subscribe, simply click the link below:

Subscribe to My Newsletter

By clicking the link, you'll be directed to the newsletter page, where you can easily subscribe and receive regular updates delivered directly to your inbox. Don't miss out on the latest trends and expert analysis in software development.

Stay updated with my latest and most interesting articles by following me.

If this guide has been helpful to you and your team please share it with others!

Top comments (7)

Collapse
 
jonrandy profile image
Jon Randy 🎖️

uBlock Origin still working just fine for me

Collapse
 
eljayadobe profile image
Eljay-Adobe

uBlock Origin and uMatrix are must "must have" extensions.

I have not yet tried Pi-hole, but that may be an alternative I'll try at some time.

Collapse
 
harshaart profile image
Harsha S

Thank You :)

Collapse
 
anitaolsen profile image
Anita Olsen

Thank you so much for this!

Collapse
 
sfleroy profile image
Leroy

How is this not just a shameless plug for your own extension which also needs dubious permissions..

Otherwise you could have just launched it on the browser extension stores and plug that

Collapse
 
crazycga profile image
James

I've taken a look at the code and while I'm more of a C# guy I didn't see anything in the code that was weird. Granted I just woke up, so I might've missed something, but for the people in the back row could you clarify your objections? What didn't I see in his code?

Collapse
 
kanani_nirav profile image
Kanani Nirav • Edited

@sfleroy @crazycga
I created this extension for my own use and later decided to share it on GitHub so just write installation instructions for others. However, I haven't launched any extension to extension stores, as I'm not familiar with the process and don't have any interest.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.