From 1d47d195fa69641a86b5663259bd0ad08af9153a Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 20 Jun 2011 12:34:04 -0700 Subject: [PATCH] this is probably more efficient --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index da7b71ca5..0861d7075 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1839,7 +1839,7 @@ })); id = root.id || $('td[id]', root).id; quotes = {}; - opbl = $.config('OP Backlinks'); + opbl = !$.config('OP Backlinks'); _ref = $$('a.quotelink', root); for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; @@ -1854,7 +1854,7 @@ if (!(el = d.getElementById(qid))) { continue; } - if (!opbl && el.className === 'op') { + if (opbl && el.className === 'op') { continue; } link = $.el('a', { diff --git a/script.coffee b/script.coffee index 8d9639147..d3875d3ad 100644 --- a/script.coffee +++ b/script.coffee @@ -1446,7 +1446,7 @@ quoteBacklink = # op or reply id = root.id or $('td[id]', root).id quotes = {} - opbl = $.config 'OP Backlinks' + opbl = ! $.config 'OP Backlinks' for quote in $$ 'a.quotelink', root #don't process >>>/b/ continue unless qid = quote.hash[1..] @@ -1455,7 +1455,7 @@ quoteBacklink = for qid, quote of quotes continue unless el = d.getElementById qid #don't backlink the op - continue if !opbl and el.className is 'op' + continue if opbl and el.className is 'op' link = $.el 'a', href: '#'+id className: 'backlink'