For several years, I could watch youtube videos add-free. The only think I had to do was to install javascript blocker addon (Scriptsafe extension for Chromium) and block the offending domains.

Couple of months ago, I started to get ads at the beginning of Youtube videos. I have not changed anything on my side, so I presumed something has changed on Youtube side.

So I have installed another extension for Chromium Adblock for Youtube. Unfortunately, this did not help, and I am still getting ads at the start of my videos.

How can I get rid of all Youtube ads?


I have installed uBlock Origin extension, and it indeed blocks youtube ads. However, I am getting errors from Srciptsafe extension:

This extension failed to redirect a network request to data:image
because another extension (uBlock Origin) redirected it to data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==.
  • What exactly is the problem about the warning? Is it some dialog popping up and therefore enervating? Then you might want to tweak the source of the extension throwing the warning only at console ;-) – Jaleks Oct 5 '16 at 8:09
  • @Jaleks - actually, the warning causes a real problem. The chromium control button (the "hamburger icon") changes to yellow, as if I had unsubscribed from my account. This requires my attention, and every time I have to check what happened. – Martin Vegter Oct 5 '16 at 10:32

What you want is uBlock Origin. It is available on chrome and firefox and it's open source.

If you're on chrome you might also want to install the WebSocket companion extension so that uBlock Origin can be aware of WebSocket connections and filter them.

No other extensions I have used or seen are as effective as uBlock Origin and I never see ads on YouTube unless I turn it off. The only ads that still sometimes get through are the ones served from the same domain as the website I'm visiting.

Some additional information about uBlock Origin

uBlock Origin is much more than just an ad blocker. From the uBlock wiki:

uBlock Origin is not an "ad blocker", it is a wide-spectrum blocker, which happens to be able to function as a mere "ad blocker".

To enable the most powerful features of uBlock Origin, you need to open the pop up user interface and click on the grey bar at the top to take you to the dashboard. On the first tab (settings), you can tick a box that says "I am an advanced user" After this is ticked, the pop up user interface changes and sort of resembles that of Scriptsafe.

You asked how you can use Scriptsafe alongside uBlock Origin, unfortunately I don't have any experience with Scriptsafe so I can't be certain, but it looks to me like Scriptsafe doesn't like that uBlock Origin does the same job it wants to do. This would leave you with two options: You could go to the uBlock Origin dashboard 3rd party filters tab and un-tick the lists that block scripts until you have dumbed uBlock down to a regular ad blocker. Or you could remove Scriptsafe and use uBlock Origin only instead.

I personally used NoScript on Firefox for a long time (even alongside uBlock) but have since removed it because uBlock has all the same functionality.

Steve Gibson covered uBlock Origin on "Security Now" in September 2015, this link should take you straight to the action. It's about 20 minutes long. It's good if you'd prefer a tutorial you can watch instead of reading the documentation to learn the basics. https://youtu.be/dB9zKOJJYaI?t=4910

  • there seems to be a conflict between uBlock Origin and my other extension Sriptsafe. I have updated my original post. Do you happen to know how to fix this conflict ? – Martin Vegter Oct 4 '16 at 17:41

uBlock Origin should solve your problem

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review – Jeff Schaller Oct 2 '16 at 19:40
  • 3
    @JeffSchaller It's ok: the essential part of the answer is to use the extension called uBlock Origin. While firexfly's answer is better since it provides more explanations, losynix's post is an answer. – Gilles 'SO- stop being evil' Oct 2 '16 at 20:00

You should use Adblock Plus. Only Adblock, AdBlock Plus and Element hiding helper for Adblock are real, all other AdBlocks are fake.

  • 2
    Do you have any evidence to support your assertion? – jasonwryan Oct 2 '16 at 19:40
  • Yes, just look at the developers of those addons. They have nothing to do with the original ones. – Barafu Albino Oct 2 '16 at 19:43
  • 3
    That would be a "no" then... – jasonwryan Oct 2 '16 at 20:13
  • If it blocks ads, it has a right to be named "AdBlock". Anyone could make their own version, and if it does its job better, it has more of a right to hold that name than the originals. – John Leuenhagen Oct 11 '16 at 19:29
  • They copy AdBlock name, use the similar icon, rely on AdBlock's reputation. They do much worse job than AdBlock. The question author installed one of those extensions and you see - it does not work at all. Somehow uBlock, AdAway, many others do manage to work without pretending to be that AdBlock. While those clones exist only because original AdBlock is legally grey area and will not drag them all to court. – Barafu Albino Oct 11 '16 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.