diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 67e359df8..91e08a981 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4690,6 +4690,7 @@ }; QuoteBacklink = { + containers: {}, init: function() { var format; if (g.VIEW === 'catalog' || !Conf['Quote Backlinks']) { @@ -4697,7 +4698,6 @@ } format = Conf['backlink'].replace(/%id/g, "' + id + '"); this.funk = Function('id', "return '" + format + "'"); - this.containers = {}; Post.callbacks.push({ name: 'Quote Backlinking Part 1', cb: this.firstNode @@ -11935,6 +11935,7 @@ g.threads = {}; g.BOARD.posts = {}; g.BOARD.threads = {}; + QuoteBacklink.containers = {}; return $.rmAll($('.board')); }, features: [['Thread Excerpt', ThreadExcerpt], ['Unread Count', Unread], ['Quote Threading', QuoteThreading], ['Thread Stats', ThreadStats], ['Thread Updater', ThreadUpdater], ['Thread Expansion', ExpandThread]], diff --git a/builds/crx/script.js b/builds/crx/script.js index 6d7b4d763..70499ee45 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4693,6 +4693,7 @@ }; QuoteBacklink = { + containers: {}, init: function() { var format; if (g.VIEW === 'catalog' || !Conf['Quote Backlinks']) { @@ -4700,7 +4701,6 @@ } format = Conf['backlink'].replace(/%id/g, "' + id + '"); this.funk = Function('id', "return '" + format + "'"); - this.containers = {}; Post.callbacks.push({ name: 'Quote Backlinking Part 1', cb: this.firstNode @@ -11924,6 +11924,7 @@ g.threads = {}; g.BOARD.posts = {}; g.BOARD.threads = {}; + QuoteBacklink.containers = {}; return $.rmAll($('.board')); }, features: [['Thread Excerpt', ThreadExcerpt], ['Unread Count', Unread], ['Quote Threading', QuoteThreading], ['Thread Stats', ThreadStats], ['Thread Updater', ThreadUpdater], ['Thread Expansion', ExpandThread]], diff --git a/src/General/Navigate.coffee b/src/General/Navigate.coffee index 19ade13c0..02a1c60fe 100644 --- a/src/General/Navigate.coffee +++ b/src/General/Navigate.coffee @@ -34,6 +34,8 @@ Navigate = g.BOARD.posts = {} g.BOARD.threads = {} + QuoteBacklink.containers = {} + # Delete nodes $.rmAll $ '.board' diff --git a/src/Quotelinks/QuoteBacklink.coffee b/src/Quotelinks/QuoteBacklink.coffee index 2b5aa2342..a9665b25d 100755 --- a/src/Quotelinks/QuoteBacklink.coffee +++ b/src/Quotelinks/QuoteBacklink.coffee @@ -10,12 +10,12 @@ QuoteBacklink = # Second callback adds relevant containers into posts. # This is is so that fetched posts can get their backlinks, # and that as much backlinks are appended in the background as possible. + containers: {} init: -> return if g.VIEW is 'catalog' or !Conf['Quote Backlinks'] format = Conf['backlink'].replace /%id/g, "' + id + '" @funk = Function 'id', "return '#{format}'" - @containers = {} Post.callbacks.push name: 'Quote Backlinking Part 1' cb: @firstNode