From 6ce4c2abbd8d2711c9fd4efc71c1eb0539b5243e Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 26 Sep 2012 16:27:18 +0200 Subject: [PATCH] Close #775 --- 4chan_x.user.js | 2 +- changelog | 2 ++ script.coffee | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6b4466df2..fd2cf8d17 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3886,7 +3886,7 @@ _ref = post.quotes; for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; - if (quote.parentNode.getAttribute('style') === 'font-size: smaller;') { + if (quote.parentNode.parentNode.className === 'capcodeReplies') { break; } if (qid = quote.hash.slice(2)) { diff --git a/changelog b/changelog index 472e7fb3e..e4441a303 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- Mayhem + Fix 'Administrator/Moderator/Developer Replies' creating extra backlinks on /q/, again. 2.35.3 - Mayhem diff --git a/script.coffee b/script.coffee index 8774dde25..aa4dd3070 100644 --- a/script.coffee +++ b/script.coffee @@ -3190,7 +3190,7 @@ QuoteBacklink = quotes = {} for quote in post.quotes # Stop at 'Admin/Mod/Dev Replies:' on /q/ - break if quote.parentNode.getAttribute('style') is 'font-size: smaller;' + break if quote.parentNode.parentNode.className is 'capcodeReplies' # Don't process >>>/b/. if qid = quote.hash[2..] # Duplicate quotes get overwritten.