I accidentally a Font Degooglifier:

I was sick and tired of having to manually degooglify fonts, so I made this. Seems to work. Handles both local files and URLs.

Perhaps somebody finds it useful.

#WebDev #SysAdmin #Google

@rysiek Very nice! if I understand correctly, I could use it by only passing google's font URLs directly (e.g. If I don't have CSS files because I use some form of CSS preprocessor). Is that right?

@lastfuture well, not really. Currently it only supports CSS files. I am not sure if I get the point of providing the font URL directly -- as in, if it's a *.ttf or *.woff or whatever, then just wget/curl it?

What would be the use-case here?

@rysiek I'm sorry, I worded my question poorly. Will I be able to pass Google's CDN URLs of their CSS directly? e.g. fonts.googleapis.com/css?famil

@rysiek I would test this myself but on macOS 10.14.2 for now it aborts with

./degooglify.sh: line 258: ${SOURCE_OF_CSS,,}: bad substitution

with GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)

@rysiek thank you. It passed the missing bash 4.x feature but failed at the -r option for sed:


· · Web · 0 · 0 · 0
Sign in to participate in the conversation

chaos.social – a Fediverse instance for & by the Chaos community