diff --git a/4chan_x.user.js b/4chan_x.user.js index 7fd552837..56a637fe5 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -92,6 +92,7 @@ quote: { 'Quote Backlinks': [true, 'Add quote backlinks'], 'OP Backlinks': [false, 'Add backlinks to the OP'], + 'Quote Hilighting': [true, 'Highlight the previewed post'], 'Quote Inline': [true, 'Show quoted post inline on quote click'], 'Quote Preview': [true, 'Show quote content on hover'], 'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes'] @@ -1898,7 +1899,9 @@ qp = $('#qp'); if (el = d.getElementById(id)) { qp.innerHTML = el.innerHTML; - $.addClass(el, 'qphl'); + if ($.config('Quote Hilighting')) { + $.addClass(el, 'qphl'); + } if (this.className === 'backlink') { replyID = (_ref = $.x('ancestor::*[@id][1]', this)) != null ? _ref.id.match(/\d+/)[0] : void 0; _ref2 = $$('a.quotelink', qp); diff --git a/script.coffee b/script.coffee index d290d0e6b..0fbbb9ee5 100644 --- a/script.coffee +++ b/script.coffee @@ -32,6 +32,7 @@ config = quote: 'Quote Backlinks': [true, 'Add quote backlinks'] 'OP Backlinks': [false, 'Add backlinks to the OP'] + 'Quote Hilighting': [true, 'Highlight the previewed post'] 'Quote Inline': [true, 'Show quoted post inline on quote click'] 'Quote Preview': [true, 'Show quote content on hover'] 'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes'] @@ -1498,7 +1499,7 @@ quotePreview = qp = $ '#qp' if el = d.getElementById id qp.innerHTML = el.innerHTML - $.addClass el, 'qphl' + $.addClass el, 'qphl' if $.config 'Quote Hilighting' if @className is 'backlink' replyID = $.x('ancestor::*[@id][1]', @)?.id.match(/\d+/)[0] for quote in $$ 'a.quotelink', qp