From 44ead81b46e01a6d09010735890312219088e365 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 6 Oct 2025 10:30:38 -0400 Subject: [PATCH] Fix BetterSettings --- src/plugins/betterSettings/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/betterSettings/index.tsx b/src/plugins/betterSettings/index.tsx index f3a0ec30c..478722b2b 100644 --- a/src/plugins/betterSettings/index.tsx +++ b/src/plugins/betterSettings/index.tsx @@ -126,7 +126,7 @@ export default definePlugin({ find: "#{intl::USER_SETTINGS_ACTIONS_MENU_LABEL}", replacement: [ { - match: /(\(0,\i.\i\)\(\))(?=\.filter\(\i=>\{let\{section:\i\}=)/, + match: /(\i)(?=\.forEach\(\i=>\{let\{)/, replace: "$self.wrapMenu($1)" }, { @@ -170,9 +170,9 @@ export default definePlugin({ } return { - filter(predicate: (item: SettingsEntry) => boolean) { + forEach(predicate: (item: SettingsEntry) => void) { for (const category of items) { - category.items = category.items.filter(predicate); + category.items.forEach(predicate); } return this; },