This commit is contained in:
James Campos 2011-04-19 22:41:54 -07:00
parent aa723fe827
commit d28c0f94e6
2 changed files with 2 additions and 12 deletions

View File

@ -118,11 +118,6 @@
return _config[parent] = obj; return _config[parent] = obj;
} }
})(null, config); })(null, config);
if (typeof GM_deleteValue === 'undefined') {
window.GM_openInTab = function(url) {
return window.open(url, "_blank");
};
}
ui = { ui = {
dialog: function(id, position, html) { dialog: function(id, position, html) {
var el, left, top, _ref, _ref2, _ref3; var el, left, top, _ref, _ref2, _ref3;
@ -712,7 +707,7 @@
id = thread.firstChild.id; id = thread.firstChild.id;
url = "http://boards.4chan.org/" + g.BOARD + "/res/" + id; url = "http://boards.4chan.org/" + g.BOARD + "/res/" + id;
if (tab) { if (tab) {
return GM_openInTab(url); return window.open(url, "_blank");
} else { } else {
return location.href = url; return location.href = url;
} }

View File

@ -56,11 +56,6 @@ _config = {}
_config[parent] = obj _config[parent] = obj
) null, config ) null, config
#x-browser
if typeof GM_deleteValue is 'undefined'
window.GM_openInTab = (url) ->
window.open url, "_blank"
ui = ui =
dialog: (id, position, html) -> dialog: (id, position, html) ->
el = document.createElement 'div' el = document.createElement 'div'
@ -518,7 +513,7 @@ keybinds =
id = thread.firstChild.id id = thread.firstChild.id
url = "http://boards.4chan.org/#{g.BOARD}/res/#{id}" url = "http://boards.4chan.org/#{g.BOARD}/res/#{id}"
if tab if tab
GM_openInTab url window.open url, "_blank"
else else
location.href = url location.href = url