From a6dd7fb963af9190874519e06ee1ce5b7d9043f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KrystalSkull=F0=9F=92=96?= Date: Sat, 18 May 2024 14:48:33 -0400 Subject: [PATCH] feat(Anammox): Update * Patches Fix * Update Annamox --------- Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com> --- src/equicordplugins/annamox/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/equicordplugins/annamox/index.ts b/src/equicordplugins/annamox/index.ts index 0af747be..d26bce5c 100644 --- a/src/equicordplugins/annamox/index.ts +++ b/src/equicordplugins/annamox/index.ts @@ -73,7 +73,7 @@ export default definePlugin({ { // Settings, sidebar find: "Messages.BILLING_SETTINGS", replacement: { - match: /\{section:\i\.SectionTypes\.HEADER,label:\i\.default\.Messages\.BILLING_SETTINGS\},.*?\{section:\i\.SectionTypes\.DIVIDER\},/, + match: /\{header:[^:,]*\.Messages.BILLING_SETTINGS,[^}]*\]},/, replace: "/*$&*/" }, predicate: () => settings.store.billing, @@ -95,10 +95,10 @@ export default definePlugin({ predicate: () => settings.store.emojiList, }, { // Emoji category list - find: ".Messages.EMOJI_PICKER_SCROLL_TO_UNICODE_A11Y_LABEL", + find: "useEmojiCategories:function()", replacement: { - match: /(\w+)=\(0,\w+.useCategoryNitroLockedStates\)\(\w+,\w+,(\w+)\)/, - replace: "$&,__98=($2=$2.filter((_,$2)=>!$1[$2]))" + match: /(?<=(\i)\.unshift\((\i)\):)(?=\1\.push\(\2\))/, + replace: "$2.isNitroLocked||" }, predicate: () => settings.store.emojiList, }