aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Devin J. Pohly <djpohly@gmail.com>2011-10-27 12:06:16 -0400
committerGravatar Devin J. Pohly <djpohly@gmail.com>2011-10-27 13:24:45 -0400
commit38fd1f02bbdc5edda7daf8210a0d2b241bc9b412 (patch)
treee3c39acd94349ac78d982d7fc290a48ddde7435c /examples
parent4e9672c31ee7790cb4a0453b7d45d3e89613c035 (diff)
add request_handler hook
This creates a handler `request_handler' in the same vein as scheme_handler, download_handler, etc., which is called whenever the page requests a URI. (Possible applications include Adblock and SSL enforcement.) The handler should get the URI from $1 and print the URI of the resource that should be loaded instead, or print nothing to allow the request unmodified.
Diffstat (limited to 'examples')
-rw-r--r--examples/config/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/config/config b/examples/config/config
index e061e12..92606a2 100644
--- a/examples/config/config
+++ b/examples/config/config
@@ -42,6 +42,7 @@ set scripts_dir = @data_home/uzbl:@prefix/share/uzbl/examples/data:scripts
# These handlers can't be moved to the new event system yet as we don't
# support events that can wait for a response from a script.
set scheme_handler = sync_spawn @scripts_dir/scheme.py
+#set request_handler = sync_spawn @scripts_dir/request.py
set authentication_handler = sync_spawn @scripts_dir/auth.py
set download_handler = sync_spawn @scripts_dir/download.sh