Open Finder then hit shift-command-g and paste /etc/hosts in the box and return and you will see the hosts file. You can then edit it with TextEdit.
Thanks mate so simple
Open Finder then hit shift-command-g and paste /etc/hosts in the box and return and you will see the hosts file. You can then edit it with TextEdit.
AdBlock Plus + Chrome .. and no ads. Period.
Kinda surprised it does not work for Safari.
damn thanks so much man!
Blocking ads on YouTube is against YouTube's terms of service and more importantly is harming to the content producers.
I've never signed a contract with Google...
By using or visiting the YouTube website or any YouTube products, software, data feeds, and services provided to you on, from, or through the YouTube website (collectively the "Service") you signify your agreement to (1) these terms and conditions (the "Terms of Service") ...
Most services generally have an implied contract: https://www.youtube.com/t/terms
That's nice...
No contract, no consideration, no worries.
By using or visiting the YouTube website or any YouTube products, software, data feeds, and services provided to you on, from, or through the YouTube website (collectively the "Service") you signify your agreement to (1) these terms and conditions (the "Terms of Service")...
Blocking ads on YouTube is against YouTube's terms of service and more importantly is harming to the content producers.
I have and Adtrap box sitting between my NetGear 6300ac router and ISP which results in eliminating over 95% of ads including youtube ads. And since it is attached to my router which provides wifi to my house, all of my iOS devices are similarly ad-free.
It is not an inexpensive solution but it is software independent so I can use any browser I choose. I find it to be worth every penny.
http://www.getadtrap.com/
You can add these to the /etc/hosts file to block the youtube ads:
127.0.0.1 ads.youtube.com
127.0.0.1 s0.2mdn.net
127.0.0.1 s1.2mdn.net
127.0.0.1 googleads.g.doubleclick.net
You can add these to the /etc/hosts file to block the youtube ads:
127.0.0.1 ads.youtube.com
127.0.0.1 s0.2mdn.net
127.0.0.1 s1.2mdn.net
127.0.0.1 googleads.g.doubleclick.net
hey man this stopped working. do you have another work around?
From youtube.com/t/terms
The terms aside, is it really worthing hurting the content producer? The ads are at most thirty-seconds, just sit through them.
I'm using this userscript/extension for Google Chrome http://userscripts.org/scripts/show/114002 - It's called YouTube Center and I have yet to see an ad with it installed.
It's available for Safari too - you'll have to read the page to find it.
First of all I wanted to say thank you very much for this invaluable tip!
This is working for me as of 22nd January.
I didn't use textedit tho, I used nano, so in terminal run this:
sudo nano /private/etc/hosts
Then just copy and paste the information above to block youtube ads.
When finished press ctrl x, select save and voilá!
Maybe fix permissions using disk utility?
I edited the host file and pasted those lines at the bottom. Hasn't seemed to work
Hmm, on Safari or Chrome?
I'm using Chromium, version 33.0.1712.0 (235555)
The popup ads (where there's a yellow line in the video bar) no longer appear but the video ads before the proper video occasionally appear.
By blocking ads, I'm not sure how I am hurting the person who uploads the funny cat videos I like to watch.
But feel free to sit through all those ads, and buy whatever you are told to. Keep staring down at your device and await further instructions from your corporate masters. That's a good little sheep.
Many people make a living from YouTube. Their salary is generated from ad revenue. I don't care for Google or any other major corporation for that matter. The fact remains though that I don't want to hurt a small independent entity because I'm too impatient to sit through an ad that is at the most 30s. To deny this revenue source would prohibit small YouTubers to remain in business. There is a cost associated with making videos.
Completely blocking sponsored advertising would be a detriment not only to the content creators and the sponsors themselves.
Don't be so impatient -- an ad is 30s at most.