diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2011-04-13 22:16:52 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2011-04-13 22:16:52 -0400 |
commit | 5931675528cd29642987512acbc08142d5699f6a (patch) | |
tree | fef9ba4560f59ba42dcc589a794f8733cc3b696b /examples/data | |
parent | 0809e47599aeb86b851a3338b71602f69306dfed (diff) |
Add binding for going to the uri of a target
Also ports old commands to new structure.
Diffstat (limited to 'examples/data')
-rw-r--r-- | examples/data/scripts/follow.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/data/scripts/follow.js b/examples/data/scripts/follow.js index ad71674..22175ca 100644 --- a/examples/data/scripts/follow.js +++ b/examples/data/scripts/follow.js @@ -16,7 +16,16 @@ uzbldivid = 'uzbl_link_hints'; uzbl.follow = function() { // Export charset = arguments[0]; - newwindow = arguments[2]; + if (arguments[2] == 'click') { + newwindow = false; + returnuri = false; + } else if (arguments[2] == 'newwindow') { + newwindow = true; + returnuri = false; + } else if (arguments[2] == 'returnuri') { + newwindow = false; + returnuri = true; + } var keypress = arguments[1]; return arguments.callee.followLinks(keypress); |