$OpenBSD: patch-config_def_h,v 1.3 2016/01/18 22:32:12 czarkoff Exp $
--- config.def.h.orig	Tue Nov 24 23:18:06 2015
+++ config.def.h	Sat Dec  5 14:51:10 2015
@@ -25,7 +25,7 @@ static const char *preferedlanguages[] = { NULL };
 
 /* Webkit default features */
 static int enablescrollbars      = 1;
-static int enablecaretbrowsing   = 1;
+static int enablecaretbrowsing   = 0;
 static int enablecache           = 1;
 static int enableplugins         = 1;
 static int enablescripts         = 1;
@@ -43,7 +43,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTION
 #define SETPROP(p, q) { \
         .v = (const char *[]){ "/bin/sh", "-c", \
              "prop=\"`xprop -id $2 $0 " \
-             "| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \
+             "| sed \"s/^$0(STRING) = \\\\\"\\(.\\{0,\\}\\)\\\\\"$/\\1/\" " \
              "| xargs -0 printf %b | dmenu`\" &&" \
              "xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
              p, q, winid, NULL \
@@ -53,9 +53,9 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTION
 /* DOWNLOAD(URI, referer) */
 #define DOWNLOAD(d, r) { \
         .v = (const char *[]){ "/bin/sh", "-c", \
-             "st -e /bin/sh -c \"curl -L -J -O --user-agent '$1'" \
-             " --referer '$2' -b $3 -c $3 '$0';" \
-             " sleep 5;\"", \
+             "uxterm -e /bin/sh -c \"cd \"${XDG_DOWNLOAD_DIR}\"; echo '$0'; " \
+             "curl -LJO --user-agent '$1' --referer '$2' -b $3 -c $3 '$0'; " \
+             "echo '\aPress ENTER to close this window'; read dismiss;\"", \
              d, useragent, r, cookiefile, NULL \
         } \
 }
