diff --git a/4chan_x.js b/4chan_x.js index f759c4965..2b8e52fa7 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1698,8 +1698,7 @@ _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; - el = d.getElementById(quote.textContent.slice(2)); - if (!el || el.className === 'op') { + if (!(el = d.getElementById(quote.textContent.slice(2)))) { continue; } good = 1; diff --git a/script.coffee b/script.coffee index 93ae17a73..d1257da7d 100644 --- a/script.coffee +++ b/script.coffee @@ -1352,8 +1352,7 @@ quoteBacklink = g.callbacks.push quoteBacklink.node node: (root) -> for quote in $$ 'a.quotelink', root - el = d.getElementById(quote.textContent[2..]) - continue if not el or el.className is 'op' + continue unless el = d.getElementById(quote.textContent[2..]) good = 1 id = quote.parentNode.parentNode.parentNode.id for backlink in $$ 'a.backlink', el