From 4fa1ad3441025128ecd304cf57f196444e753ddb Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 31 Oct 2011 09:24:42 -0700 Subject: [PATCH] switch order of conditionals --- 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 17c038894..ac47b4ec5 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2360,7 +2360,7 @@ if (!(el = $.id(qid))) { continue; } - if (!conf['OP Backlinks'] && el.className === 'op') { + if (el.className === 'op' && !conf['OP Backlinks']) { continue; } link = a.cloneNode(true); diff --git a/script.coffee b/script.coffee index 870ee5c9e..5c3a0bfed 100644 --- a/script.coffee +++ b/script.coffee @@ -1780,7 +1780,7 @@ quoteBacklink = for qid of quotes continue unless el = $.id qid #don't backlink the op - continue if !conf['OP Backlinks'] and el.className is 'op' + continue if el.className is 'op' and !conf['OP Backlinks'] link = a.cloneNode true if conf['Quote Preview'] $.bind link, 'mouseover', quotePreview.mouseover