Installing an ad blocking extension, such as AdBlock Plus, for every browser gets to be annoying, and it’s unavailabe for some browsers. They can also slow down your browser.
Instead of doing this, why not install a system-wide ad blocker? This can be achieved by installing an ad blocking proxy, such as Privoxy, and just setting a proxy address for each of your browsers.
# install privoxy $ sudo pacman -S privoxy # (optional) install an AdBlock Plus easylist importer from AUR # replace yaourt with whatever you use for AUR installation $ yaourt -S privoxy-blocklist $ sudo privoxy-blocklist # start privoxy $ sudo /etc/rc.d/privoxy start
Next, you’ll need to add privoxy to your DAEMONS array in your
The easiest way to set the proxy for Chrome and Firefox is by adding an environment variable * In Chrome, the proxy can’t even be set through the browser.
To do this, create
/etc/profile.d/privoxy.sh with the following:
export http_proxy="http://127.0.0.1:8118" export https_proxy="http://127.0.0.1:8118"
Change the permissions on the file:
$ sudo chmod a+x /etc/profile.d/privoxy.sh
You’ll need to log out and back in for the changes to take effect.
For Firefox, you’ll need to do the following:
- Select “Use system proxy settings”
If this doesn’t work for Firefox (as has happened to me…), you can manually configure Firefox’s proxy settings:
- Select “Manual proxy configuration”
- Set HTTP and SSL proxy host to 127.0.0.1 and port to 8118.
- Click on “Proxy Servers…”
- Set host to 127.0.0.1 and Port to 8118 for HTTP and HTTPS.
~/.config/uzbl/config, add the following:
set proxy_url = http://127.0.0.1:8118