From feb72d4f0e09b782cf311e3cda97cb8d21e56032 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 9 May 2011 01:12:25 +0200 Subject: [PATCH] Decent cross-thread OP quoting. --- 4chan_x.js | 3 ++- script.coffee | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index ebc555e6f..41eb43acb 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1731,7 +1731,8 @@ innerHTML: req.responseText }); if (id === threadID) { - html = $('blockquote', body).innerHTML; + threading.thread($('form[name=delform] > *:not([id])', body)); + html = $('.op', body).innerHTML; } else { _ref = $$('td.reply', body); for (_i = 0, _len = _ref.length; _i < _len; _i++) { diff --git a/script.coffee b/script.coffee index e05693295..e9e238d46 100644 --- a/script.coffee +++ b/script.coffee @@ -1378,7 +1378,8 @@ quotePreview = body = $.el 'body', innerHTML: req.responseText if id == threadID #OP - html = $('blockquote', body).innerHTML + threading.thread $ 'form[name=delform] > *:not([id])', body + html = $('.op', body).innerHTML else for reply in $$ 'td.reply', body if reply.id == id