From 48f887ea98ebf7352890e7710f07cab8bf83fa9b Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 16 Apr 2026 21:26:41 -0400 Subject: [PATCH] EquicordHelper: JSON Gateway --- src/equicordplugins/equicordHelper/index.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/equicordplugins/equicordHelper/index.tsx b/src/equicordplugins/equicordHelper/index.tsx index a73639e7f..40d81730d 100644 --- a/src/equicordplugins/equicordHelper/index.tsx +++ b/src/equicordplugins/equicordHelper/index.tsx @@ -128,6 +128,12 @@ const settings = definePluginSettings({ default: true, restartNeeded: true }, + jsonGateway: { + type: OptionType.BOOLEAN, + description: "Forces JSON on gateway reconnect", + default: true, + restartNeeded: true + } }); export default definePlugin({ @@ -274,6 +280,14 @@ export default definePlugin({ replace: "return null;$&" }, predicate: () => settings.store.disableAdoptTagPrompt + }, + { + find: "JSONEncoding", + replacement: { + match: /void 0!==\i\?\i:/, + replace: "" + }, + predicate: () => settings.store.jsonGateway } ], renderMessageAccessory(props) {