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;
}
})(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;
}

View File

@ -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