From 40a4db4aab7fddfa61aabd103b3346c4c866e611 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 24 May 2011 22:14:26 -0700 Subject: [PATCH] fix op quoting, closes #133 --- 4chan_x.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index e1150692f..dd6690768 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1930,7 +1930,7 @@ if (root.className === 'inline') { return; } - tid = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', root).id; + tid = g.THREAD_ID || $.x('ancestor::div[contains(@class,"thread")]/div', root).id; _ref = $$('a.quotelink', root); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { diff --git a/script.coffee b/script.coffee index aefc659e8..d3e8bc57f 100644 --- a/script.coffee +++ b/script.coffee @@ -1521,7 +1521,7 @@ quoteOP = g.callbacks.push quoteOP.node node: (root) -> return if root.className is 'inline' - tid = g.THREAD_ID or $.x('ancestor::div[@class="thread"]/div', root).id + tid = g.THREAD_ID or $.x('ancestor::div[contains(@class,"thread")]/div', root).id for quote in $$ 'a.quotelink', root if quote.hash[1..] is tid quote.textContent += ' (OP)'