Thanks, but I do not wish to use that script at all. Iâm very happy with my simple solution.
However, I did a quick test on the @martinh command ( pkill -f browser), and it actually works to apply the updated hosts file without reboot.
I have accepted one PR from @vlagged and another is in the pipeline.
Sorry, work has been hell for 3 weeks now. And today I physically broke my phone, so getting a new one takes priority. I guess in a few days I have time to figure out how @vlaggedâs contrib results in a usable software package, and how to make the script even more robust! Possibly even configurable.
Just a quick reminder, the package includes a systemd service file that executes the script.
Thanks for the info. I have used the hosts approach but i seem to be getting ads in android. Shouldnât the hosts block ads in android as well? It works fine in default browser
If I remember correctly, you should ad your hosts list also to /system/etc/hosts, to make it work also in android.
At least that was the case some years ago.