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) ->