diff --git a/4chan_x.js b/4chan_x.js index c67b91530..da795aa8c 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -2,7 +2,7 @@ // @name 4chan x // @namespace aeosynth // @description Adds various features. -// @version 2.6.0 +// @version 2.7.0 // @copyright 2009-2011 James Campos // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* @@ -1681,7 +1681,7 @@ var el, id, link, qid, quote, quotes, tid, _i, _len, _ref, _results; 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 5ab2639af..d4469eed6 100644 --- a/script.coffee +++ b/script.coffee @@ -1352,7 +1352,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.textContent.match /\d+/ [qid] = qid