WebKit Content Blocker to block web fonts in Safari (iOS & macOS)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
SansFonts-macOS
SansFonts.xcodeproj
SansFonts
content-blocker-mac
content-blocker
fastlane
iTunes
.gitignore
README.md
Rakefile
SansFonts.entitlements
blockerList.json

README.md

Sans Fonts

Sans Fonts icon

A WebKit Content Blocker That Kills Web Fonts With Fire

…except for icon fonts, because they don’t delay text rendering.

See my blog post for the motivation behind this project.

Download

You can download the iOS 9 app here.

If you are using Safari 9 or later (not necessarily on El Capitan!), you can download the code-signed Safari extensions from the releases page.

Limitations

  • Content blockers cannot block fonts that are embedded in CSS files using data: URLs. (Yes, that is a thing.)
  • Sans Fonts uses primitive heuristics to exclude Font Awesome and other icon fonts from being blocked — some non-icon fonts will probably slip through the cracks.
  • The blocker list is still very basic. I am using this extension for my daily browsing, though, so major bugs should be squished fast enough.

Related Reading

This blog post was more helpful than the documentation on the Apple developer site: https://www.webkit.org/blog/3476/content-blockers-first-look/

License

The media assets in here (PNG and Sketch files) are licensed under the Creative Commons BY-SA 4.0 license. The author is: Julian Raschke, julian@raschke.de

All other files, including the source code and all build files, are released under the MIT license. Enjoy!