lurado / SansFonts

WebKit Content Blocker to block web fonts in Safari (iOS & macOS)
25 stars 2 forks source link

localhost and *.dev white-listing #35

Closed pocketarc closed 7 years ago

pocketarc commented 8 years ago

Would you be willing to white-list local development URLs? I've been working on a couple of projects where not having these white-listed means I have to keep turning off Sans Fonts in order to see the websites as they would be for most people. In local development environments Sans Fonts doesn't affect anything since there's no network latency to worry about.

For localhost, adding to the unless-domain at the start of the blocker list would do it, and for *.dev we'd probably need a URL filter with "ignore-previous-rules". If it's something you're interested in, I'll write a PR for it as soon as I get a chance to.

jlnr commented 8 years ago

Good idea, would gladly accept a Pull Request.