From e31944501be96d5a7ce356b2f1e6f2daca02563e Mon Sep 17 00:00:00 2001 From: Jordan Bates Date: Thu, 25 Apr 2013 04:59:20 -0700 Subject: [PATCH] Re-add .yourPost per @RiDeag --- builds/4chan-X.js | 3 +++ builds/4chan-X.user.js | 3 +++ builds/crx/script.js | 3 +++ src/features/quoting/quoteyou.coffee | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 226c43fbb..5df4a92d4 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -8776,6 +8776,9 @@ if (this.isClone) { return; } + if (this.info.yours) { + $.addClass(this.nodes.root, 'yourPost'); + } if (!(quotes = this.quotes).length) { return; } diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 3b131a176..aa1c728d5 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -8797,6 +8797,9 @@ if (this.isClone) { return; } + if (this.info.yours) { + $.addClass(this.nodes.root, 'yourPost'); + } if (!(quotes = this.quotes).length) { return; } diff --git a/builds/crx/script.js b/builds/crx/script.js index b57c9d150..00c6342bb 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -8642,6 +8642,9 @@ if (this.isClone) { return; } + if (this.info.yours) { + $.addClass(this.nodes.root, 'yourPost'); + } if (!(quotes = this.quotes).length) { return; } diff --git a/src/features/quoting/quoteyou.coffee b/src/features/quoting/quoteyou.coffee index 36b7d06ff..96bf124d5 100644 --- a/src/features/quoting/quoteyou.coffee +++ b/src/features/quoting/quoteyou.coffee @@ -10,6 +10,10 @@ QuoteYou = node: -> # Stop there if it's a clone. return if @isClone + + if @info.yours + $.addClass @nodes.root, 'yourPost' + # Stop there if there's no quotes in that post. return unless (quotes = @quotes).length {quotelinks} = @nodes