From 6d3afcd005b66aaf1f13a8cc8db27b37f862fd6b Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 2 Aug 2013 21:13:32 +0200 Subject: [PATCH] Simplify $.open with GM_openInTab. --- lib/$.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/$.coffee b/lib/$.coffee index 2d7da3708..811614b78 100644 --- a/lib/$.coffee +++ b/lib/$.coffee @@ -147,7 +147,7 @@ $.off = (el, events, handler) -> $.event = (event, detail, root=d) -> root.dispatchEvent new CustomEvent event, {bubbles: true, detail} <% if (type === 'userscript') { %> -$.open = (URL) -> GM_openInTab URL +$.open = GM_openInTab <% } else { %> $.open = (URL) -> window.open URL, '_blank' <% } %>