Fix Open thread in new tab for Safari. Close #78
This commit is contained in:
parent
7e02db3b9b
commit
f94a1c8736
@ -490,9 +490,6 @@
|
||||
return defaultValue;
|
||||
}
|
||||
},
|
||||
openInTab: function(url) {
|
||||
return GM_openInTab(url);
|
||||
},
|
||||
set: function(name, value) {
|
||||
name = NAMESPACE + name;
|
||||
localStorage[name] = JSON.stringify(value);
|
||||
@ -514,9 +511,6 @@
|
||||
return defaultValue;
|
||||
}
|
||||
},
|
||||
openInTab: function(url) {
|
||||
return window.open(url, "_blank");
|
||||
},
|
||||
set: function(name, value) {
|
||||
name = NAMESPACE + name;
|
||||
return localStorage[name] = JSON.stringify(value);
|
||||
@ -1083,11 +1077,12 @@
|
||||
}
|
||||
},
|
||||
open: function(thread, tab) {
|
||||
var id, url;
|
||||
var id, open, url;
|
||||
id = thread.firstChild.id;
|
||||
url = "http://boards.4chan.org/" + g.BOARD + "/res/" + id;
|
||||
if (tab) {
|
||||
return $.openInTab(url);
|
||||
open = GM_openInTab || window.open;
|
||||
return open(url, "_blank");
|
||||
} else {
|
||||
return location.href = url;
|
||||
}
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
master
|
||||
- mayhem
|
||||
fix Open thread in new tab keybind for Safari with Ninjakit
|
||||
fix Index/Reply Navigation working in both cases when only one is enabled
|
||||
|
||||
2.24.0
|
||||
- mayhem
|
||||
|
||||
@ -369,8 +369,6 @@ if GM_deleteValue?
|
||||
JSON.parse value
|
||||
else
|
||||
defaultValue
|
||||
openInTab: (url) ->
|
||||
GM_openInTab url
|
||||
set: (name, value) ->
|
||||
name = NAMESPACE + name
|
||||
# for `storage` events
|
||||
@ -387,8 +385,6 @@ else
|
||||
JSON.parse value
|
||||
else
|
||||
defaultValue
|
||||
openInTab: (url) ->
|
||||
window.open url, "_blank"
|
||||
set: (name, value) ->
|
||||
name = NAMESPACE + name
|
||||
localStorage[name] = JSON.stringify value
|
||||
@ -770,7 +766,8 @@ keybinds =
|
||||
id = thread.firstChild.id
|
||||
url = "http://boards.4chan.org/#{g.BOARD}/res/#{id}"
|
||||
if tab
|
||||
$.openInTab url
|
||||
open = GM_openInTab or window.open
|
||||
open url, "_blank"
|
||||
else
|
||||
location.href = url
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user