From 54fdcc72ddb6db6ea18b9ae5f861282312f92563 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 8 Nov 2024 01:17:52 -0500 Subject: [PATCH] Fixes --- src/plugins/_core/noTrack.ts | 11 +++++++---- src/webpack/common/utils.ts | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/plugins/_core/noTrack.ts b/src/plugins/_core/noTrack.ts index 8d6a1e76..f9d04226 100644 --- a/src/plugins/_core/noTrack.ts +++ b/src/plugins/_core/noTrack.ts @@ -60,14 +60,17 @@ export default definePlugin({ } ] }, - { - find: ".installedLogHooks)", + // TEMP Work until Vencord Fix + ...[ + ".DEBUG_LOGGING)", + ".inputDeviceId)||" + ].map(find => ({ + find, replacement: { - // if getDebugLogging() returns false, the hooks don't get installed. match: "getDebugLogging(){", replace: "getDebugLogging(){return false;" } - }, + })), ], startAt: StartAt.Init, diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index df0e4c94..89ca7f76 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -187,7 +187,7 @@ export const ExpressionPickerStore: t.ExpressionPickerStore = mapMangledModuleLa toggleExpressionPicker: filters.byCode(/getState\(\)\.activeView===\i\?\i\(\):\i\(/), setExpressionPickerView: filters.byCode(/setState\({activeView:\i,lastActiveView:/), setSearchQuery: filters.byCode("searchQuery:"), - useExpressionPickerStore: filters.byCode(".getInitialState") + useExpressionPickerStore: filters.byCode("Object.is") }); export const PopoutActions: t.PopoutActions = mapMangledModuleLazy('type:"POPOUT_WINDOW_OPEN"', {