Created
January 30, 2012 22:10
-
-
Save ss1978/1707110 to your computer and use it in GitHub Desktop.
Adfilter snippet for uzbl-browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Adfilter snippet for uzbl, by Sandor Sipos (2012) | |
# | |
# Licence: BSD | |
# | |
# Installation: | |
# 1. Save this script to scripts dir | |
# 2. Use your polipo forbidden file. | |
# 3. in $XDG_CONFIG_HOME/uzbl/config add request_handler script like: | |
# set request_handler = sync_spawn @scripts_dir/request.sh | |
# 4. Done. | |
# | |
echo $1|grep -vf $XDG_CONFIG_HOME/uzbl/forbidden || echo "about:blank" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment