From 64b04e5c6aeba2b820e585ec57d4aef40727b90b Mon Sep 17 00:00:00 2001 From: Mayhem Date: Thu, 23 May 2013 23:06:58 +0200 Subject: [PATCH] Remove $.open workaround. --- lib/$.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/$.coffee b/lib/$.coffee index a37a9c494..16e2b82ae 100644 --- a/lib/$.coffee +++ b/lib/$.coffee @@ -147,9 +147,7 @@ $.off = (el, events, handler) -> $.event = (event, detail, root=d) -> root.dispatchEvent new CustomEvent event, {bubbles: true, detail} <% if (type === 'userscript') { %> -# XXX fix GM opening file://// for protocol-less URLs. -# https://github.com/greasemonkey/greasemonkey/issues/1719 -$.open = (URL) -> GM_openInTab ($.el 'a', href: URL).href +$.open = (URL) -> GM_openInTab URL <% } else { %> $.open = (URL) -> window.open URL, '_blank' <% } %>