Sample iOS 9 Safari Content Blocker. Built in Xcode 7 Beta 1.
Currently setup to block JavaScript from:
- Google Analytics
- Chartbeat
- comScore
- Google Doubleclick
- WWDC 2015 Session: Safari Extensibility: Content Blocking and Shared Links
- WebKit.org Blog: Introduction & JSON Syntax
- Device must be on iOS 9
- Open in Xcode 7 to build
- Build to device
- Settings > Safari > Content Blockers
- Enable BlockAnalytics
Browse with Safari to a website with Google Doubleclick ads, and they won't display or slow down the pageload.
The reloadContentBlockerWithIdentifier function is not working.This was resolved with iOS 9 Beta 5.