One feature still missing from WebPositive is an ad-blocker. Although there are a few caveats and it isn’t exactly straight forward, there is a way to avoid ads. It uses a “hosts” file that redirects traffic from known ad-servers.
- Get an ad-blocking hosts file, e.g. Steven Black’s. You may want to update that one regularly.
- Unpack the archive and copy the hosts file to
- Before starting WebPositive, always start PoorMan (just go with its default settings). It intercepts the redirected traffic, otherwise WebPositive keeps stalling for long periods.
For some reason, some sites don’t like being ad-blocked in this way. Those just never load in WebPositive and leave the page empty. To get them loading, you have to quit WebPositive, rename the hosts file, and restart WebPositive. I can live with that, because I don’t frequent many sites having this problem often.
To make it easier, I created a script “Hosts-are-ON” and put it on the Desktop:
#!/bin/sh # toggle ad-blocking hosts file cd /system/settings/network if [ -e hosts ] ; then mv hosts hosts_off mv ~/Desktop/Hosts-are-ON ~/Desktop/Hosts-are-OFF else mv hosts_off hosts mv ~/Desktop/Hosts-are-OFF ~/Desktop/Hosts-are-ON fi
Now a simple double-click on the script renames the hosts file and by renaming the script itself, shows if ad-blocking is turned on or off.
Definitely only a stop-gap solution until WebPositive learns to ad-block itself, and not suited for everyone, but I thought I post about it anyway.