From f5662ef46d79a1a6a9f663bbe822378a2f315d2d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 19 May 2011 22:16:43 +0200 Subject: [PATCH] Don't double the (OP) on inlined quotes. --- 4chan_x.js | 3 +++ script.coffee | 1 + 2 files changed, 4 insertions(+) diff --git a/4chan_x.js b/4chan_x.js index 76b0c996a..87419709e 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1891,6 +1891,9 @@ }, node: function(root) { var quote, tid, _i, _len, _ref, _results; + if (root.className) { + return; + } tid = g.THREAD_ID || root.parentNode.firstChild.id; _ref = $$('a.quotelink', root); _results = []; diff --git a/script.coffee b/script.coffee index 9e75a7665..90ae99260 100644 --- a/script.coffee +++ b/script.coffee @@ -1494,6 +1494,7 @@ quoteOP = init: -> g.callbacks.push quoteOP.node node: (root) -> + return if root.className tid = g.THREAD_ID or root.parentNode.firstChild.id for quote in $$ 'a.quotelink', root if quote.hash[1..] is tid