Fix $.open
Should fix the issue with opening things in new tabs. Yes, I'm dumb
This commit is contained in:
parent
4317526923
commit
093fd54413
2
LICENSE
2
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
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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'
|
||||
<% } %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user