Skip to content

Instantly share code, notes, and snippets.

@ss1978
Created January 30, 2012 22:10
Show Gist options
  • Save ss1978/1707110 to your computer and use it in GitHub Desktop.
Save ss1978/1707110 to your computer and use it in GitHub Desktop.
Adfilter snippet for uzbl-browser
#!/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