From 6c1eef61c0d22bdefbb714a9ffb59a89e638f94e Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 13 Jan 2014 19:09:41 -0700 Subject: [PATCH] Fix "Mark Quotes of You" God, that option name is dumb --- builds/4chan-X.user.js | 13 +++++-------- builds/crx/script.js | 13 +++++-------- src/General/lib/post.class | 5 ----- src/Quotelinks/QuoteYou.coffee | 2 +- 4 files changed, 11 insertions(+), 22 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 8b94d4b9b..dd01e429b 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1030,13 +1030,6 @@ this.nodes.date = date; this.info.date = new Date(date.dataset.utc * 1000); } - if (Conf['Quick Reply']) { - this.info.yours = QR.db.get({ - boardID: this.board, - threadID: this.thread, - postID: this.ID - }); - } this.parseComment(); this.parseQuotes(); this.parseFile(that); @@ -5271,7 +5264,11 @@ if (this.isClone) { return; } - if (this.info.yours) { + if (QR.db.get({ + boardID: this.board.ID, + threadID: this.thread.ID, + postID: this.ID + })) { $.addClass(this.nodes.root, 'yourPost'); } if (!this.quotes.length) { diff --git a/builds/crx/script.js b/builds/crx/script.js index 7b3d6c1eb..783cc5f33 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1035,13 +1035,6 @@ this.nodes.date = date; this.info.date = new Date(date.dataset.utc * 1000); } - if (Conf['Quick Reply']) { - this.info.yours = QR.db.get({ - boardID: this.board, - threadID: this.thread, - postID: this.ID - }); - } this.parseComment(); this.parseQuotes(); this.parseFile(that); @@ -5274,7 +5267,11 @@ if (this.isClone) { return; } - if (this.info.yours) { + if (QR.db.get({ + boardID: this.board.ID, + threadID: this.thread.ID, + postID: this.ID + })) { $.addClass(this.nodes.root, 'yourPost'); } if (!this.quotes.length) { diff --git a/src/General/lib/post.class b/src/General/lib/post.class index 42d64ea93..b1a3f4beb 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -48,11 +48,6 @@ class Post if date = $ '.dateTime', info @nodes.date = date @info.date = new Date date.dataset.utc * 1000 - if Conf['Quick Reply'] - @info.yours = QR.db.get - boardID: @board - threadID: @thread - postID: @ID @parseComment() @parseQuotes() diff --git a/src/Quotelinks/QuoteYou.coffee b/src/Quotelinks/QuoteYou.coffee index 876c7d318..9147e3c6f 100755 --- a/src/Quotelinks/QuoteYou.coffee +++ b/src/Quotelinks/QuoteYou.coffee @@ -20,7 +20,7 @@ QuoteYou = node: -> return if @isClone - if @info.yours + if QR.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID} $.addClass @nodes.root, 'yourPost' # Stop there if there's no quotes in that post.