aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Paweł Zuzelski <pawelz@pld-linux.org>2010-06-21 18:48:04 +0200
committerGravatar Brendan Taylor <whateley@gmail.com>2011-11-23 19:08:50 -0700
commit7e2441e2480ed5ae80ae19489d030a17f5aab6b8 (patch)
treea74c764e30e187fe929a17073549bae364e14bce
parente1d2e58570d620f25425e8f1c01131a426d9818e (diff)
example SSL error handler
-rw-r--r--examples/config/config2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/config/config b/examples/config/config
index fe1e236..80aae3d 100644
--- a/examples/config/config
+++ b/examples/config/config
@@ -151,6 +151,8 @@ set useragent = Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}) (@(+uname
# set ssl_verify = 1
# Command to toggle ssl_verify value:
@cbind !ssl = sh 'echo "set ssl_verify=$((!\@ssl_verify))" > "$4"; echo "set uri = \\\\\\\@uri" > "$4"'
+# Example SSL error handler:
+@on_event LOAD_ERROR js var patt=new RegExp(':The SSL certificate is not trusted.'); if (patt.test('%1')) {alert ('%1');}
# === Key binding configuration ==============================================
# --- Internal modmapping and ignoring ---------------------------------------