From 74cfc8349d2d7e7bc05a60297b8dc590c8724315 Mon Sep 17 00:00:00 2001 From: No Face Date: Tue, 6 Mar 2012 15:53:34 +0100 Subject: [PATCH] Fix Quote Highlighting. --- 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 d16cc2cbf..f0aed2679 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3315,7 +3315,7 @@ _ref = $$('.quotelink', qp); for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; - if (quote.hash.slice(1) === replyID) $.addClass(quote, 'forwardlink'); + if (quote.hash.slice(1) === replyID) quote.className = 'forwardlink'; } } } else { diff --git a/script.coffee b/script.coffee index 72daadcfd..58b1ade8b 100644 --- a/script.coffee +++ b/script.coffee @@ -2714,7 +2714,7 @@ QuotePreview = replyID = $.x('preceding-sibling::input', @parentNode).name for quote in $$ '.quotelink', qp if quote.hash[1..] is replyID - $.addClass quote, 'forwardlink' + quote.className = 'forwardlink' else qp.textContent = "Loading #{id}..." threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]', @).firstChild.id