I took a little time out today to watch WWDC Session 511 to learn about how Safari Content Blocking will work in iOS 9 and OS X El Capitan. After an hour, I had a little concept app running. I wont really explain the technical details of how the extensions work or how to create them, that is better done by watching the WWDC Session video directly, but I will say its frightfully easy and the code I used for the blocker detailed below is at the bottom of this page.
I’m not complaining.
Your article href is missing an opening double-quote, resulting in the target ending in ‘an-hour-with-safari-content-blocker-in-ios-9″‘ rather than ‘an-hour-with-safari-content-blocker-in-ios-9’.
EDIT 20150625 @ 14:11
…apparently the URLs are too long and get truncated in the comments anyway. Edited to work around that.
Edited 2015-06-25 21:12 UTC
I’ve read that the reason why Apple is adding content blocking to Safari is to try and force publishers over to their news app, which will not have said content blocking. Pretty clever if you ask me
I don’t run adblockers in general because that deprives site owners of revenues… But in some cases if the site goes overboard I will. Like Youtube where I block ads if I want to watch some videos with my daughter. I don’t need her sitting through endless ads.
Some mobile sites like this article also deserve a blocking.
What I want is an adblocker that automatically sends a comment to the webhost like “I’m blocking your ads because you are going wildly overboard and they degrade the experience on your site to the point of making it unusable. Make your ads more subtle and I’ll unblock you again”.
I have no interest in blocking ads, but I would like to block these Javascript files (mostly used by widgets) that take an eternity to load that I would never use.
For example, block all scripts coming from facebook, twitter, google plus, addthis, sharethis, etc.
My phone is on a flaky 3G connection and those scripts often timeout on me causing me to wait upwards of minutes for a simple page to load.
I generally have to turn off Javascript when browsing on my phone but the occasional website requires Javascript to logon or enter captchas or submit comments, etc.