GM can into console.log.bind.
This commit is contained in:
parent
c954544048
commit
7b49ae4c76
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
(function() {
|
||||
var $, $$, Conf, Config, UI, d, g, _base;
|
||||
var $, $$, Conf, Config, UI, d, g;
|
||||
|
||||
Config = {
|
||||
main: {
|
||||
@ -297,7 +297,7 @@
|
||||
MINUTE: 1000 * 60,
|
||||
HOUR: 1000 * 60 * 60,
|
||||
DAY: 1000 * 60 * 60 * 24,
|
||||
log: typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0,
|
||||
log: console.log.bind(console),
|
||||
engine: /WebKit|Presto|Gecko/.exec(navigator.userAgent)[0].toLowerCase(),
|
||||
ready: function(fc) {
|
||||
var cb;
|
||||
|
||||
@ -251,12 +251,10 @@ $.extend = (object, properties) ->
|
||||
|
||||
$.extend $,
|
||||
SECOND: 1000
|
||||
MINUTE: 1000*60
|
||||
HOUR : 1000*60*60
|
||||
DAY : 1000*60*60*24
|
||||
log:
|
||||
# XXX GreaseMonkey can't into console.log.bind
|
||||
console.log.bind? console
|
||||
MINUTE: 1000 *60
|
||||
HOUR : 1000 *60 * 60
|
||||
DAY : 1000 *60 * 60 * 24
|
||||
log: console.log.bind console
|
||||
engine: /WebKit|Presto|Gecko/.exec(navigator.userAgent)[0].toLowerCase()
|
||||
ready: (fc) ->
|
||||
if /interactive|complete/.test d.readyState
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user