diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2011-04-13 22:15:53 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2011-04-13 22:15:53 -0400 |
commit | c7cf3ef494c7e971c7884bb8e5ba93c9c5e9b32d (patch) | |
tree | fb93c7b0f92a78f060271e493d593bd2543232ae /examples | |
parent | ed8f45d6eb21e5a931d55235708bcc73a2191771 (diff) |
Handle returning a uri selected by follow.js
Diffstat (limited to 'examples')
-rw-r--r-- | examples/data/scripts/follow.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/data/scripts/follow.js b/examples/data/scripts/follow.js index b7b0d82..ad71674 100644 --- a/examples/data/scripts/follow.js +++ b/examples/data/scripts/follow.js @@ -222,7 +222,7 @@ uzbl.follow.followLinks = function(follow) { //var desc = '*[title], img[alt], applet[alt], area[alt], input[alt]'; //var image = 'img, input[type=image]'; - if(newwindow) + if(newwindow || returnuri) var res = this.query(uri); else var res = this.query(followable); @@ -237,6 +237,11 @@ uzbl.follow.followLinks = function(follow) { // clear all of our hints this.clearHints(); + if (returnuri) { + var uri = el.src || el.href; + return "XXXRETURNED_URIXXX" + uri + } + if (newwindow) { // we're opening a new window using the URL attached to this element var uri = el.src || el.href; |