From 093fd544137648cc709f7700cfd69f39b128e9e6 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 1 Aug 2013 10:26:06 -0700 Subject: [PATCH] Fix $.open Should fix the issue with opening things in new tabs. Yes, I'm dumb --- LICENSE | 2 +- builds/4chan-X.user.js | 6 ++---- builds/crx/script.js | 2 +- src/General/lib/$.coffee | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 041018353..97bce1cc7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.2.24 - 2013-07-31 +* 4chan X - Version 1.2.24 - 2013-08-01 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 1dd030857..909c75b3f 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -19,7 +19,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // ==/UserScript== /* -* 4chan X - Version 1.2.24 - 2013-07-31 +* 4chan X - Version 1.2.24 - 2013-08-01 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -675,9 +675,7 @@ }; $.open = function(URL) { - return $.open = function(URL) { - return GM_openInTab(URL); - }; + return GM_openInTab(URL); }; $.debounce = function(wait, fn) { diff --git a/builds/crx/script.js b/builds/crx/script.js index 0b06b2da7..b56ccc5f4 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.2.24 - 2013-07-31 +* 4chan X - Version 1.2.24 - 2013-08-01 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE diff --git a/src/General/lib/$.coffee b/src/General/lib/$.coffee index c9d50c4ff..a04926155 100644 --- a/src/General/lib/$.coffee +++ b/src/General/lib/$.coffee @@ -221,7 +221,7 @@ $.event = (event, detail, root=d) -> $.open = (URL) -> <% if (type === 'userscript') { %> - $.open = (URL) -> GM_openInTab URL + GM_openInTab URL <% } else { %> window.open URL, '_blank' <% } %>