From 36c1165debf53f26bb2dbc9a6547c7db727bc923 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 1 Sep 2012 03:42:46 +0200 Subject: [PATCH] Don't count capcode replies quotelinks as quotes. --- 4chan_x.user.js | 3 +++ script.coffee | 1 + 2 files changed, 4 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index 522a3ef46..97266e2db 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -715,6 +715,9 @@ quotelink = _ref2[_k]; if (quotelink.hash) { this.nodes.quotelinks.push(quotelink); + if (quotelink.parentNode.parentNode.className === 'capcodeReplies') { + continue; + } quotes["" + (quotelink.pathname.split('/')[1]) + "." + quotelink.hash.slice(2)] = true; } } diff --git a/script.coffee b/script.coffee index 96749de8d..72d5bfaa8 100644 --- a/script.coffee +++ b/script.coffee @@ -564,6 +564,7 @@ class Post # Only add quotes that link to posts on an imageboard. if quotelink.hash @.nodes.quotelinks.push quotelink + continue if quotelink.parentNode.parentNode.className is 'capcodeReplies' quotes["#{quotelink.pathname.split('/')[1]}.#{quotelink.hash[2..]}"] = true @quotes = Object.keys quotes