From 59c0b604a55683f9bfe9ea268dc5a62f94b043a8 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 24 Jun 2024 18:15:47 -0400 Subject: [PATCH] Fixes --- src/equicordplugins/annamox/index.ts | 22 -------------------- src/equicordplugins/exportContacts/index.tsx | 4 ++-- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/src/equicordplugins/annamox/index.ts b/src/equicordplugins/annamox/index.ts index abf8034c..29fc8e93 100644 --- a/src/equicordplugins/annamox/index.ts +++ b/src/equicordplugins/annamox/index.ts @@ -27,12 +27,6 @@ export const settings = definePluginSettings({ description: "Remove gift button", restartNeeded: true, }, - emojiList: { - type: OptionType.BOOLEAN, - default: true, - description: "Remove unavailable categories from the emoji picker", - restartNeeded: true, - }, }); export default definePlugin({ @@ -85,22 +79,6 @@ export default definePlugin({ replace: "return null;", }, predicate: () => settings.store.gift, - }, - { // Emoji list - find: /\.filter\(\i=>\i\.\i\i\.getEmojiUnavailableReason/, - replacement: { - match: /(\w+)=!\w+&&\w+.\i.isEmojiCategoryNitroLocked\(\{[^}]*\}\);/, - replace: "$&$1||" - }, - predicate: () => settings.store.emojiList, - }, - { // Emoji category list - find: "useEmojiCategories:function()", - replacement: { - match: /(?<=(\i)\.unshift\((\i)\):)(?=\1\.push\(\2\))/, - replace: "$2.isNitroLocked||" - }, - predicate: () => settings.store.emojiList, } ], }); diff --git a/src/equicordplugins/exportContacts/index.tsx b/src/equicordplugins/exportContacts/index.tsx index cefc1f0e..62ec8939 100644 --- a/src/equicordplugins/exportContacts/index.tsx +++ b/src/equicordplugins/exportContacts/index.tsx @@ -62,8 +62,8 @@ export default definePlugin({ { find: "fetchRelationships(){", replacement: { - match: /\.then\((\i)=>(\i\.\i\.)dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS",relationships:(\i\.body)}\)/, - replace: ".then($1=>{$2dispatch({type:\"LOAD_RELATIONSHIPS_SUCCESS\",relationships:$3}); $self.getContacts($3)}" + match: /\.then\((\i)=>(\i\.\i)\.dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS",relationships:(\i\.body)}\)/, + replace: ".then($1=>{$2.dispatch({type:\"LOAD_RELATIONSHIPS_SUCCESS\",relationships:$3}); $self.getContacts($3)}" } }, {