rm GM_
This commit is contained in:
parent
aa723fe827
commit
d28c0f94e6
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user