From 3983c2b96b77a1e3268c2d38884678bc2065608f Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 29 Sep 2011 21:27:26 +0200 Subject: [PATCH] Don't add filtered/hidden posts to the unread count. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index e9db8594b..d91522266 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2684,7 +2684,7 @@ return g.callbacks.push(unread.node); }, node: function(root) { - if (root.className) { + if (root.hidden || root.className) { return; } unread.replies.push(root); diff --git a/script.coffee b/script.coffee index d77172822..87b669c0e 100644 --- a/script.coffee +++ b/script.coffee @@ -1959,7 +1959,7 @@ unread = g.callbacks.push unread.node node: (root) -> - return if root.className + return if root.hidden or root.className unread.replies.push root unread.updateTitle() Favicon.update()