diff --git a/4chan_x.user.js b/4chan_x.user.js index 9f333442a..1e3f2c462 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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; } diff --git a/changelog b/changelog index f4c9d5f14..ff9c68ea2 100644 --- a/changelog +++ b/changelog @@ -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 diff --git a/script.coffee b/script.coffee index ae407abb2..2b95d9565 100644 --- a/script.coffee +++ b/script.coffee @@ -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