From d0769bbdc988d4a7201e989692d90986f182ba7c Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 26 May 2011 15:38:21 +0200 Subject: [PATCH] Fix relocalized time inside inlined quotes. --- 4chan_x.js | 3 +++ script.coffee | 1 + 2 files changed, 4 insertions(+) diff --git a/4chan_x.js b/4chan_x.js index 45e94fc98..366ba7ded 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1664,6 +1664,9 @@ init: function() { return g.callbacks.push(function(root) { var date, day, dotw, hour, meridiem, min_sec, month, s, span, year, _, _i, _len, _ref, _ref2, _results; + if (root.className === 'inline') { + return; + } _ref = $$('span[id^=no]', root); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { diff --git a/script.coffee b/script.coffee index 671c17d48..46aa1e257 100644 --- a/script.coffee +++ b/script.coffee @@ -1333,6 +1333,7 @@ sauce = localize = init: -> g.callbacks.push (root) -> + return if root.className is 'inline' for span in $$ 'span[id^=no]', root s = span.previousSibling [_, month, day, year, hour, min_sec] =