aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-12-01 12:11:30 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2010-12-01 12:11:30 -0700
commit087242a5ddc1532fa1464d1e322ed6b6da3ccced (patch)
treebad513f4823c1c4bcf5b5335431380e5045b16a5 /examples
parent7f5369cc979ce7297adc22ba46ee7925623a6800 (diff)
parent081c95aee6d6490fdaf67e22c3d6245009462908 (diff)
Merge commit '081c95' into experimental
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/data/scripts/download.sh1
-rwxr-xr-xexamples/data/scripts/follow.sh2
-rwxr-xr-xexamples/data/scripts/formfiller.sh2
3 files changed, 5 insertions, 0 deletions
diff --git a/examples/data/scripts/download.sh b/examples/data/scripts/download.sh
index 3b5d980..b378a85 100755
--- a/examples/data/scripts/download.sh
+++ b/examples/data/scripts/download.sh
@@ -2,6 +2,7 @@
# just an example of how you could handle your downloads
# try some pattern matching on the uri to determine what we should do
+shift 7
. $UZBL_UTIL_DIR/uzbl-dir.sh
# Some sites block the default wget --user-agent..
diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh
index d1560bf..2d666a2 100755
--- a/examples/data/scripts/follow.sh
+++ b/examples/data/scripts/follow.sh
@@ -3,6 +3,8 @@
# This script is just a wrapper around follow.js that lets us change uzbl's mode
# after a link is selected.
+shift 7
+
# if socat is installed then we can change Uzbl's input mode once a link is
# selected; otherwise we just select a link.
if ! which socat >/dev/null 2>&1; then
diff --git a/examples/data/scripts/formfiller.sh b/examples/data/scripts/formfiller.sh
index c6822e6..6e04573 100755
--- a/examples/data/scripts/formfiller.sh
+++ b/examples/data/scripts/formfiller.sh
@@ -53,6 +53,8 @@ MODELINE="> vim:ft=formfiller"
[ -d "$(dirname $UZBL_FORMS_DIR)" ] || exit 1
[ -d $UZBL_FORMS_DIR ] || mkdir $UZBL_FORMS_DIR || exit 1
+shift 7
+
action=$1
domain=$(echo $UZBL_URI | sed 's/\(http\|https\):\/\/\([^\/]\+\)\/.*/\2/')