Skip to content

WebKit Content Blocker to block web fonts in Safari (iOS & macOS)

Notifications You must be signed in to change notification settings

lurado/SansFonts

Repository files navigation

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, [email protected]

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

Releases

No releases published

Packages

No packages published