diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 464001094..f7a529dfe 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9694,7 +9694,7 @@ } return arr.splice(0, i); }, - read: function(e) { + read: $.debounce(100, function(e) { var ID, height, post, posts; if (d.hidden || !Unread.posts.length) { return; @@ -9722,7 +9722,7 @@ if (e) { return Unread.update(); } - }, + }), saveLastReadPost: $.debounce(2 * $.SECOND, function() { if (Unread.thread.isDead) { return; diff --git a/builds/crx/script.js b/builds/crx/script.js index c5ab8c091..a8870f676 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9677,7 +9677,7 @@ } return arr.splice(0, i); }, - read: function(e) { + read: $.debounce(100, function(e) { var ID, height, post, posts; if (d.hidden || !Unread.posts.length) { return; @@ -9705,7 +9705,7 @@ if (e) { return Unread.update(); } - }, + }), saveLastReadPost: $.debounce(2 * $.SECOND, function() { if (Unread.thread.isDead) { return; diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 1eeeebb0c..1632c3347 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -135,7 +135,7 @@ Unread = break if post.ID > Unread.lastReadPost arr.splice 0, i - read: (e) -> + read: $.debounce 100, (e) -> return if d.hidden or !Unread.posts.length height = doc.clientHeight