diff --git a/4chan_x.js b/4chan_x.js index ecf5ed2f3..13bc84ed0 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -118,11 +118,6 @@ return _config[parent] = obj; } })(null, config); - if (typeof GM_deleteValue === 'undefined') { - window.GM_openInTab = function(url) { - return window.open(url, "_blank"); - }; - } ui = { dialog: function(id, position, html) { var el, left, top, _ref, _ref2, _ref3; @@ -712,7 +707,7 @@ id = thread.firstChild.id; url = "http://boards.4chan.org/" + g.BOARD + "/res/" + id; if (tab) { - return GM_openInTab(url); + return window.open(url, "_blank"); } else { return location.href = url; } diff --git a/script.coffee b/script.coffee index 2e01b7203..cbcfd2229 100644 --- a/script.coffee +++ b/script.coffee @@ -56,11 +56,6 @@ _config = {} _config[parent] = obj ) null, config -#x-browser -if typeof GM_deleteValue is 'undefined' - window.GM_openInTab = (url) -> - window.open url, "_blank" - ui = dialog: (id, position, html) -> el = document.createElement 'div' @@ -518,7 +513,7 @@ keybinds = id = thread.firstChild.id url = "http://boards.4chan.org/#{g.BOARD}/res/#{id}" if tab - GM_openInTab url + window.open url, "_blank" else location.href = url