wBlock icon indicating copy to clipboard operation
wBlock copied to clipboard

[Feature Request] Auto-update of filters

Open noobdesigner922 opened this issue 1 year ago • 9 comments

It would be really great if wBlock would

  1. show when some filter was last updated, and
  2. auto-update the filters in the background.

Right now when I open wBlock, I have to click on "Update Filters" and manually select filters one by one.

noobdesigner922 avatar Oct 12 '24 06:10 noobdesigner922

Yep this is coming. I need to figure out background daemons so it can update filters in the background.

0xCUB3 avatar Oct 12 '24 12:10 0xCUB3

I've been looking into this too and it does present some issues. There will have to be a different implementation for macOS & iOS/iPadOS/visionOS. macOS we can use a background service, but iOS/iPadOS/visionOS may need manual refreshing, which could include a notification sent to the user depending on the interval they set, or the user would have the keep the app open in the background in which case it may be able to auto-refresh, I'll have to double check.

arjpar avatar Oct 29 '24 03:10 arjpar

Added in 78569d1

0xCUB3 avatar Nov 25 '24 16:11 0xCUB3

Added in 78569d1

@0xCUB3 Does the new auto-update feature work when the app is closed on macOS, or does it have to be open in the background at all times? Asking since I didn't see any signs of background services being added (yet) in recent commits, so I'm presuming it's the latter for now.

schm1dtmac avatar Nov 27 '24 19:11 schm1dtmac

No, unfortunately it requires the app to be running for now. I am working on getting it in a LaunchAgent, but I don't want to have to request too many permissions from the user.

0xCUB3 avatar Nov 27 '24 19:11 0xCUB3

No, unfortunately it requires the app to be running for now. I am working on getting it in a LaunchAgent, but I don't want to have to request too many permissions from the user.

Is it possible to just run it in the browser like other extensions with a built-in settings page instead of a separate app?

TheKivster avatar Nov 28 '24 20:11 TheKivster

No, unfortunately it requires the app to be running for now. I am working on getting it in a LaunchAgent, but I don't want to have to request too many permissions from the user.

Is it possible to just run it in the browser like other extensions with a built-in settings page instead of a separate app?

It would be tricky due to the limitations of safari extensions. I still think it will be possible, though.

0xCUB3 avatar Nov 28 '24 22:11 0xCUB3

No, unfortunately it requires the app to be running for now. I am working on getting it in a LaunchAgent, but I don't want to have to request too many permissions from the user.

Is it possible to just run it in the browser like other extensions with a built-in settings page instead of a separate app?

It would be tricky due to the limitations of safari extensions. I still think it will be possible, though.

Most Safari extensions I use do that

TheKivster avatar Nov 29 '24 01:11 TheKivster

@TheKivster For content blocking you can't update it through the browser, because its converted to Content Blocking rules through the main app. For advanced blocking, it's also converted with the content blocking rules. It's not possible to do it in the browser I believe because we use SafariConverterLib to convert AdGuard format to content blocking & advanced blocking rules. We could theoretically do the advanced blocking separately, but that would incur a duplication of effort, thus it's more efficient and practical to do them all at once in the main app, rather than in the browser.

arjpar avatar Nov 29 '24 02:11 arjpar

This feature has been added into the latest TestFlight alpha build (not release). Note that on iOS, you cannot force quit the app, as Apple won't allow background updates. On macOS, though, you can quit the main app and still get automatic filter updates! Enjoy :)

https://testflight.apple.com/join/F93erUGR

0xCUB3 avatar Sep 15 '25 20:09 0xCUB3

This doesn’t work for me, even without force quitting the app

ftgjhf avatar Oct 17 '25 08:10 ftgjhf