From 620ead5cf60a446a2f7dc4e136d8cee895ea51df Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Wed, 23 Nov 2011 19:53:56 -0700 Subject: don't use window.open in follow.js. it's slow, forces you to turn on javascript_windows = 1, and on some systems results in multiple new windows/tabs. --- examples/data/scripts/follow.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/data/scripts/follow.js') diff --git a/examples/data/scripts/follow.js b/examples/data/scripts/follow.js index 45ecfc6..88f80f2 100644 --- a/examples/data/scripts/follow.js +++ b/examples/data/scripts/follow.js @@ -288,11 +288,10 @@ uzbl.follow.elementSelected = function(el) { // we're opening a new window using the URL attached to this element var uri = el.src || el.href; if(uri.match(/javascript:/)) return; - window.open(uri); - return "XXXRESET_MODEXXX" + return "XXXNEW_WINDOWXXX " + uri; } else { - // we're just going to click the element - return this.clickElem(el); + // we're just going to click the element + return this.clickElem(el); } } -- cgit v1.2.3