From 02fb1bc26ff7854ea724e6f256ee11b0bae95c72 Mon Sep 17 00:00:00 2001 From: BlipRanger <1860540+BlipRanger@users.noreply.github.com> Date: Thu, 6 Jul 2023 23:06:44 -0400 Subject: [PATCH] Revert to the not evals. --- public/script.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 970963cc8..a8903427d 100644 --- a/public/script.js +++ b/public/script.js @@ -6494,7 +6494,12 @@ const swipe_right = () => { } export function updateCharacterCount(characterSelector) { - const visibleCharacters = $(characterSelector).filter(":visible"); + const visibleCharacters = $(characterSelector) + .not(".hiddenBySearch") + .not(".hiddenByTag") + .not(".hiddenByGroup") + .not(".hiddenByGroupMember") + .not(".hiddenByFav"); const visibleCharacterCount = visibleCharacters.length; const totalCharacterCount = $(characterSelector).length;