dgraham / Ka-Block

A Safari extension that blocks an artisanal selection of advertising domains.
http://kablock.com
MIT License
862 stars 77 forks source link

Why it runs a process on MacOS? #191

Closed neutor closed 2 years ago

neutor commented 2 years ago

First, thanks a ton!

I found that I have a process running all the time. I thought this is a Content blocker, just supplying block list to Safari. I'd like to not have a 3rd-party process running.

$ ps aux
5:46pm   0:00.03  /Applications/Ka-Block!.app/Contents/PlugIns/Ka-Block! Content Blocker macOS.appex/Contents/MacOS/Ka-Block! Content Blocker macOS -AppleLanguages ("en-AU")

Cheers!

dgraham commented 2 years ago

Safari loads enabled content blocking plugins as an external process. Disabled plugins do not start a process until they are enabled in Safari preferences. In Ka-Block's case, we don't require a process because it really just delivers a block list JSON file to Safari to compile. In the general case, plugins can do more than this and require a running process. There's no way to avoid this as far as I know.