From 59f5adaf7d73c2c9c8971dd5560015ae7447152b Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 29 Apr 2012 15:09:18 +0200 Subject: [PATCH] Fix time formatting for OPs. --- 4chan_x.user.js | 2 +- script.coffee | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a21d717e2..22bf9f56d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2835,7 +2835,7 @@ if (post["class"] === 'inline') { return; } - node = $('.dateTime', post.el); + node = $('.postInfo > .dateTime', post.el); Time.date = Time.parse(node.textContent); node.textContent = Time.funk(Time); return node.dataset.time = Time.date.toISOString(); diff --git a/script.coffee b/script.coffee index affc84de4..5485ee469 100644 --- a/script.coffee +++ b/script.coffee @@ -2247,8 +2247,7 @@ Time = Main.callbacks.push @node node: (post) -> return if post.class is 'inline' - # .posttime exists on every board except /f/ - node = $ '.dateTime', post.el + node = $ '.postInfo > .dateTime', post.el Time.date = Time.parse node.textContent node.textContent = Time.funk(Time) # Set the datetime attribute, ISO'd.