diff --git a/4chan_x.js b/4chan_x.js index 23fac72e0..8c1214b2c 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1667,7 +1667,7 @@ } id = root.id || $('td[id]', root).id; quotes = {}; - tid = g.THREAD_ID; + tid = g.THREAD_ID || root.parentNode.firstChild.id; _ref = $$('a.quotelink', root); for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; diff --git a/script.coffee b/script.coffee index d9dca6f09..a71922bb1 100644 --- a/script.coffee +++ b/script.coffee @@ -1336,7 +1336,7 @@ quoteBacklink = #better coffee-script way of doing this? id = root.id or $('td[id]', root).id quotes = {} - tid = g.THREAD_ID + tid = g.THREAD_ID or root.parentNode.firstChild.id for quote in $$ 'a.quotelink', root continue unless qid = quote.hash[1..] #don't backlink the op