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, }