From 07fce347f6efdca81ac71b4e4f2147aa3b4b494e Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 5 Mar 2012 01:54:03 +0100 Subject: [PATCH] Fix preparsing post.el for inlined quotes. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index ceaab2e19..0664e7818 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3934,7 +3934,7 @@ klass = node.className; posts.push({ root: node, - el: klass === 'op' ? node : $('td[id]', node), + el: klass === 'op' ? node : node.firstChild.firstChild.lastChild, "class": klass, id: $('input', node).name, threadId: g.THREAD_ID || $.x('ancestor::div[contains(@class,"thread")]', node).firstChild.id, diff --git a/script.coffee b/script.coffee index 3befc4ca3..5caea8141 100644 --- a/script.coffee +++ b/script.coffee @@ -3242,7 +3242,7 @@ Main = klass = node.className posts.push root: node - el: if klass is 'op' then node else $ 'td[id]', node + el: if klass is 'op' then node else node.firstChild.firstChild.lastChild class: klass id: $('input', node).name threadId: g.THREAD_ID or $.x('ancestor::div[contains(@class,"thread")]', node).firstChild.id