diff --git a/src/plugins/_core/noTrack.ts b/src/plugins/_core/noTrack.ts index 4920ce20..79ef5a6e 100644 --- a/src/plugins/_core/noTrack.ts +++ b/src/plugins/_core/noTrack.ts @@ -22,7 +22,7 @@ import definePlugin from "@utils/types"; export default definePlugin({ name: "NoTrack", description: "Disable Discord's tracking ('science'), metrics and Sentry crash reporting", - authors: [Devs.Cyn, Devs.Ven, Devs.Nuckyz], + authors: [Devs.Cyn, Devs.Ven, Devs.Nuckyz, Devs.Arrow], required: true, patches: [ { @@ -51,6 +51,13 @@ export default definePlugin({ replace: "return;" } ] - } + }, + { + find: ".installedLogHooks)", + replacement: { + match: /if\(\i\.getDebugLogging\(\)&&!\i\.installedLogHooks\)/, + replace: "if(false)" + } + }, ] }); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 667e396f..1cb746a7 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -339,6 +339,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({ name: "Rini", id: 1079479184478441643n }, + Arrow: { + name: "arrow", + id: 958158495302176778n + }, } satisfies Record); // iife so #__PURE__ works correctly