diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 34d4ca5e4..23bfd65e1 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -4131,7 +4131,7 @@ }); }, node: function() { - var quotelink, quotelinks, quotes, _i, _len; + var quotelink, _i, _len, _ref; if (this.isClone) { return; @@ -4139,12 +4139,12 @@ if (this.info.yours) { $.addClass(this.nodes.root, 'yourPost'); } - if (!(quotes = this.quotes).length) { + if (!this.quotes.length) { return; } - quotelinks = this.nodes.quotelinks; - for (_i = 0, _len = quotelinks.length; _i < _len; _i++) { - quotelink = quotelinks[_i]; + _ref = this.nodes.quotelinks; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + quotelink = _ref[_i]; if (QR.db.get(Get.postDataFromLink(quotelink))) { $.add(quotelink, $.tn('\u00A0(You)')); $.addClass(this.nodes.root, 'quotesYou'); diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index dd27c7f61..9b671b83f 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4115,7 +4115,7 @@ }); }, node: function() { - var quotelink, quotelinks, quotes, _i, _len; + var quotelink, _i, _len, _ref; if (this.isClone) { return; @@ -4123,12 +4123,12 @@ if (this.info.yours) { $.addClass(this.nodes.root, 'yourPost'); } - if (!(quotes = this.quotes).length) { + if (!this.quotes.length) { return; } - quotelinks = this.nodes.quotelinks; - for (_i = 0, _len = quotelinks.length; _i < _len; _i++) { - quotelink = quotelinks[_i]; + _ref = this.nodes.quotelinks; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + quotelink = _ref[_i]; if (QR.db.get(Get.postDataFromLink(quotelink))) { $.add(quotelink, $.tn('\u00A0(You)')); $.addClass(this.nodes.root, 'quotesYou'); diff --git a/builds/crx/script.js b/builds/crx/script.js index 1e9ce43b6..142885761 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4117,7 +4117,7 @@ }); }, node: function() { - var quotelink, quotelinks, quotes, _i, _len; + var quotelink, _i, _len, _ref; if (this.isClone) { return; @@ -4125,12 +4125,12 @@ if (this.info.yours) { $.addClass(this.nodes.root, 'yourPost'); } - if (!(quotes = this.quotes).length) { + if (!this.quotes.length) { return; } - quotelinks = this.nodes.quotelinks; - for (_i = 0, _len = quotelinks.length; _i < _len; _i++) { - quotelink = quotelinks[_i]; + _ref = this.nodes.quotelinks; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + quotelink = _ref[_i]; if (QR.db.get(Get.postDataFromLink(quotelink))) { $.add(quotelink, $.tn('\u00A0(You)')); $.addClass(this.nodes.root, 'quotesYou'); diff --git a/src/Quotelinks/QuoteYou.coffee b/src/Quotelinks/QuoteYou.coffee index 15b64b48e..3a0d13db3 100644 --- a/src/Quotelinks/QuoteYou.coffee +++ b/src/Quotelinks/QuoteYou.coffee @@ -21,10 +21,9 @@ QuoteYou = $.addClass @nodes.root, 'yourPost' # Stop there if there's no quotes in that post. - return unless (quotes = @quotes).length - {quotelinks} = @nodes + return unless @quotes.length - for quotelink in quotelinks + for quotelink in @nodes.quotelinks if QR.db.get Get.postDataFromLink quotelink $.add quotelink, $.tn '\u00A0(You)' $.addClass @nodes.root, 'quotesYou'