Revert 'Move $.open by rest of the GM_ functions. Coffeescript.'

This commit is contained in:
ahodesuka 2012-05-09 03:37:31 -05:00
parent 894d5d8790
commit 6750437071
2 changed files with 5 additions and 10 deletions

View File

@ -450,6 +450,9 @@
el.removeEventListener(event, handler, false);
}
},
open: function(url) {
return (GM_openInTab || window.open)(location.protocol + url, '_blank');
},
isDST: function() {
/*
http://en.wikipedia.org/wiki/Eastern_Time_Zone
@ -518,9 +521,6 @@
return defaultValue;
}
},
open: function(url) {
return GM_openInTab(location.protocol + url);
},
set: function(name, value) {
name = Main.namespace + name;
localStorage.setItem(name, JSON.stringify(value));
@ -540,9 +540,6 @@
},
set: function(name, value) {
return localStorage.setItem(Main.namespace + name, JSON.stringify(value));
},
open: function(url) {
return window.open(location.protocol + url, '_blank');
}
});

View File

@ -347,6 +347,8 @@ $.extend $,
for event in events.split ' '
el.removeEventListener event, handler, false
return
open: (url) ->
(GM_openInTab or window.open) url, '_blank'
isDST: ->
###
http://en.wikipedia.org/wiki/Eastern_Time_Zone
@ -418,8 +420,6 @@ $.extend $,
JSON.parse value
else
defaultValue
open: (url) ->
GM_openInTab location.protocol + url
set: (name, value) ->
name = Main.namespace + name
# for `storage` events
@ -435,8 +435,6 @@ $.extend $,
defaultValue
set: (name, value) ->
localStorage.setItem Main.namespace + name, JSON.stringify value
open: (url) ->
window.open location.protocol + url, '_blank'
$$ = (selector, root=d.body) ->
Array::slice.call root.querySelectorAll selector