diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 758523ea7..f1fcb88a2 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -3733,9 +3733,6 @@ if (g.VIEW === 'catalog' || !Conf['Quote Inlining']) { return; } - if (Conf['Comment Expansion']) { - ExpandComment.callbacks.push(this.node); - } if (Conf['Quote Hash Navigation']) { this.node = function() { var link, _i, _len, _ref; @@ -3760,6 +3757,9 @@ } }; } + if (Conf['Comment Expansion']) { + ExpandComment.callbacks.push(this.node); + } return Post.prototype.callbacks.push({ name: 'Quote Inlining', cb: this.node diff --git a/builds/crx/script.js b/builds/crx/script.js index 2c5f99ebd..2785e07e9 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -3738,9 +3738,6 @@ if (g.VIEW === 'catalog' || !Conf['Quote Inlining']) { return; } - if (Conf['Comment Expansion']) { - ExpandComment.callbacks.push(this.node); - } if (Conf['Quote Hash Navigation']) { this.node = function() { var link, _i, _len, _ref; @@ -3765,6 +3762,9 @@ } }; } + if (Conf['Comment Expansion']) { + ExpandComment.callbacks.push(this.node); + } return Post.prototype.callbacks.push({ name: 'Quote Inlining', cb: this.node diff --git a/src/Quotelinks/QuoteInline.coffee b/src/Quotelinks/QuoteInline.coffee index 723f0c53b..95a225e38 100644 --- a/src/Quotelinks/QuoteInline.coffee +++ b/src/Quotelinks/QuoteInline.coffee @@ -2,9 +2,6 @@ QuoteInline = init: -> return if g.VIEW is 'catalog' or !Conf['Quote Inlining'] - if Conf['Comment Expansion'] - ExpandComment.callbacks.push @node - if Conf['Quote Hash Navigation'] @node = -> for link in @nodes.quotelinks.concat [@nodes.backlinks...] @@ -18,6 +15,9 @@ QuoteInline = $.on link, 'click', QuoteInline.toggle return + if Conf['Comment Expansion'] + ExpandComment.callbacks.push @node + Post::callbacks.push name: 'Quote Inlining' cb: @node