2025-03-06 0.0.6 removed for erros not tested, see https://forum.sailfishos.org/t/hosts-block-ad-blocking-via-etc-hosts-now...
2025-03-01 Please use chum for the future versions, I am uploading 0.0.6 from there, but might not update it timely in the future.
Testing packaging of https://framagit.org/ohnonot/sfos/-/tree/master/hosts (see thread https://forum.sailfishos.org/t/ad-blocking-in-sailfishos-in-2023-what-ar...).
This is a service that once a week (If I read it correctly) downloads hosts to block.
The service/script/timer is done by @ohnonot, I have only packaged it as in https://framagit.org/ohnonot/sfos/-/merge_requests/1/diffs
If it does not automatically start, you need to "systemctl start hosts.service" and/or "systemctl start hosts.timer" as root (devel-su) and wait a bit (check journalctl -f or systemctl status hosts.service).
When done, reboot.
Attachment | Size | Date |
---|---|---|
![]() | 8.88 KB | 09/01/2025 - 01:59 |
![]() | 9.47 KB | 12/01/2025 - 02:59 |
- major overhaul to enable reload on filechange
Comments
shak3800
Thu, 2025/03/06 - 15:24
Permalink
Does this also change host in /system/etc/hosts ? I seem to be getting ads in android but not in SFOS
b100dian
Thu, 2025/03/06 - 16:48
Permalink
No, I don't think so. Please be aware that if you install the 0.0.6 version, there was an error in that package that might make your device not boot: See this thread https://forum.sailfishos.org/t/hosts-block-ad-blocking-via-etc-hosts-now... which should also be the support thread opened by @ohnonot
I have temporarily retired 0.0.6 from openrepos now too.
sausset
Sun, 2025/01/12 - 17:01
Permalink
In the last version, notificationtool is used but not installed by default (at least on C2 with 5.0.0.43) You have to install it before: pkcon install lipstick-qt5-tools
The script is failing and the service cannot be launched properly if you don't install it.
Once done, everything is working fine. :-)
b100dian
Sun, 2025/01/12 - 23:23
Permalink
Thank you @sausset for your comment and analysis - that is indeed the case, I have added that dependency in 0.0.2+git1