From 7fb4c97611e46ba923ec9387c22730f012cd1dde Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 20 Aug 2012 23:27:15 +0200 Subject: [PATCH] Fix #668 --- 4chan_x.user.js | 3 +++ changelog | 1 + script.coffee | 2 ++ 3 files changed, 6 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index f7f0cbd4f..1439d11b7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3799,6 +3799,9 @@ _ref = post.quotes; for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; + if (quote.parentNode.getAttribute('style') === 'font-size: smaller;') { + break; + } if (qid = quote.hash.slice(2)) { quotes[qid] = true; } diff --git a/changelog b/changelog index 1eb3236b8..27e44b225 100644 --- a/changelog +++ b/changelog @@ -2,6 +2,7 @@ master - Mayhem Fix cooldown on /q/. Fix thread creation with no file on /q/. + Fix 'Administrator/Moderator/Developer Replies' creating extra backlinks on /q/. Add /mlp/ archive redirection. 2.34.4 diff --git a/script.coffee b/script.coffee index 0eba6f5e5..a91b8a489 100644 --- a/script.coffee +++ b/script.coffee @@ -3021,6 +3021,8 @@ QuoteBacklink = return if post.isInlined quotes = {} for quote in post.quotes + # Stop at 'Admin/Mod/Dev Replies:' on /q/ + break if quote.parentNode.getAttribute('style') is 'font-size: smaller;' # Don't process >>>/b/. if qid = quote.hash[2..] # Duplicate quotes get overwritten.