Don't set ISO'd time on the time element, 4chan will give the timestamps.
This commit is contained in:
parent
4bfab3c3b9
commit
1d0f5a3d24
@ -2824,8 +2824,7 @@
|
|||||||
}
|
}
|
||||||
node = $('.postInfo > .dateTime', post.el);
|
node = $('.postInfo > .dateTime', post.el);
|
||||||
Time.date = Time.parse(node.textContent);
|
Time.date = Time.parse(node.textContent);
|
||||||
node.textContent = Time.funk(Time);
|
return node.textContent = Time.funk(Time);
|
||||||
return node.dataset.time = Time.date.toISOString();
|
|
||||||
},
|
},
|
||||||
foo: function() {
|
foo: function() {
|
||||||
var code;
|
var code;
|
||||||
|
|||||||
@ -2226,8 +2226,6 @@ Time =
|
|||||||
node = $ '.postInfo > .dateTime', post.el
|
node = $ '.postInfo > .dateTime', post.el
|
||||||
Time.date = Time.parse node.textContent
|
Time.date = Time.parse node.textContent
|
||||||
node.textContent = Time.funk(Time)
|
node.textContent = Time.funk(Time)
|
||||||
# Set the datetime attribute, ISO'd.
|
|
||||||
node.dataset.time = Time.date.toISOString()
|
|
||||||
foo: ->
|
foo: ->
|
||||||
code = Conf['time'].replace /%([A-Za-z])/g, (s, c) ->
|
code = Conf['time'].replace /%([A-Za-z])/g, (s, c) ->
|
||||||
if c of Time.formatters
|
if c of Time.formatters
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user