From 9059abf8534f797a5582161b2ee39ec7786bc94b Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 6 Dec 2023 14:14:00 +0100 Subject: [PATCH] Prevent the Unignore All button from always being added. --- .../features/miscellaneous/unignore-all-button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/content-scripts/features/miscellaneous/unignore-all-button.tsx b/source/content-scripts/features/miscellaneous/unignore-all-button.tsx index 18c9418..94fc5be 100644 --- a/source/content-scripts/features/miscellaneous/unignore-all-button.tsx +++ b/source/content-scripts/features/miscellaneous/unignore-all-button.tsx @@ -11,8 +11,8 @@ function addUnignoreAllButton(): boolean { // Only add the button when we're on the ignore list page and the ignore list // isn't empty. if ( - window.location.pathname !== "/ignored_topics" && - document.querySelector("main > .empty") === null + window.location.pathname !== "/ignored_topics" || + document.querySelector("main > .empty") !== null ) { return false; }