diff --git a/4chan_x.user.js b/4chan_x.user.js index 6bf3a8399..bad087399 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1732,13 +1732,13 @@ case 'p': case 'P': case 'y': - return "' + time." + c + "() + '"; + return "' + Time." + c + "() + '"; break; default: return s; } }); - return Time.funk = Function('time', "return '" + code + "'"); + return Time.funk = Function('Time', "return '" + code + "'"); }, day: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], diff --git a/script.coffee b/script.coffee index dd0b85069..1c50c5f45 100644 --- a/script.coffee +++ b/script.coffee @@ -1383,9 +1383,9 @@ Time = foo: -> code = $.config('time').replace /%([A-Za-z])/g, (s, c) -> switch c - when 'a', 'A', 'b', 'B', 'd', 'H', 'I', 'm', 'M', 'p', 'P', 'y' then "' + time.#{c}() + '" + when 'a', 'A', 'b', 'B', 'd', 'H', 'I', 'm', 'M', 'p', 'P', 'y' then "' + Time.#{c}() + '" else s - Time.funk = Function 'time', "return '#{code}'" + Time.funk = Function 'Time', "return '#{code}'" day: [ 'Sunday' 'Monday'