Fix $.open

Should fix the issue with opening things in new tabs. Yes, I'm dumb
This commit is contained in:
Zixaphir 2013-08-01 10:26:06 -07:00
parent 4317526923
commit 093fd54413
4 changed files with 5 additions and 7 deletions

View File

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

View File

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

View File

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

View File

@ -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'
<% } %>