From 1d0f5a3d24a569d7d4a910f59bc3737dc8a97350 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 13 May 2012 16:51:01 +0200 Subject: [PATCH] Don't set ISO'd time on the time element, 4chan will give the timestamps. --- 4chan_x.user.js | 3 +-- script.coffee | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index ca2359418..f668de93c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2824,8 +2824,7 @@ } node = $('.postInfo > .dateTime', post.el); Time.date = Time.parse(node.textContent); - node.textContent = Time.funk(Time); - return node.dataset.time = Time.date.toISOString(); + return node.textContent = Time.funk(Time); }, foo: function() { var code; diff --git a/script.coffee b/script.coffee index 81c3f3038..cbccbde19 100644 --- a/script.coffee +++ b/script.coffee @@ -2226,8 +2226,6 @@ Time = node = $ '.postInfo > .dateTime', post.el Time.date = Time.parse node.textContent node.textContent = Time.funk(Time) - # Set the datetime attribute, ISO'd. - node.dataset.time = Time.date.toISOString() foo: -> code = Conf['time'].replace /%([A-Za-z])/g, (s, c) -> if c of Time.formatters