From 2b2e0b6d16a66ad72fd6e254e6085d09c93298ed Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 3 Mar 2013 17:33:25 +0100 Subject: [PATCH] GM_openInTab only takes one argument. --- 4chan_x.user.js | 2 +- lib/$.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index dc872815b..4fa35e1ef 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -849,7 +849,7 @@ a = $.el('a', { href: URL }); - return GM_openInTab(a.href, '_blank'); + return GM_openInTab(a.href); }; } else { return function(URL) { diff --git a/lib/$.coffee b/lib/$.coffee index e374a6e71..384d02b24 100644 --- a/lib/$.coffee +++ b/lib/$.coffee @@ -143,7 +143,7 @@ $.extend $, (URL) -> # XXX fix GM opening file://// for protocol-less URLs. a = $.el 'a', href: URL - GM_openInTab a.href, '_blank' + GM_openInTab a.href else (URL) -> window.open URL, '_blank' debounce: (wait, fn) ->