diff --git a/4chan_x.user.js b/4chan_x.user.js index 8ccc92849..1d8cd1345 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1901,7 +1901,7 @@ if ($.config('Quote Highlighting')) { $.addClass(el, 'qphl'); } - if (this.className === 'backlink') { + if (/backlink/.test(this.className)) { replyID = $.x('ancestor::*[@id][1]', this).id.match(/\d+/)[0]; _ref = $$('a.quotelink', qp); for (_i = 0, _len = _ref.length; _i < _len; _i++) { diff --git a/script.coffee b/script.coffee index df86712a6..54b7549b0 100644 --- a/script.coffee +++ b/script.coffee @@ -1492,7 +1492,7 @@ quotePreview = if el = d.getElementById id qp.innerHTML = el.innerHTML $.addClass el, 'qphl' if $.config 'Quote Highlighting' - if @className is 'backlink' + if /backlink/.test @className replyID = $.x('ancestor::*[@id][1]', @).id.match(/\d+/)[0] for quote in $$ 'a.quotelink', qp if quote.hash[1..] is replyID