diff options
author | Arrow <arrow@arrowsysx.com> | 2023-08-10 15:17:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 00:17:29 +0200 |
commit | abdf4ebb05ea9a20966096d062887a4f5c734e44 (patch) | |
tree | 5b65eb628717ba489fdb72ebb9336e7f04dfe46b /src/plugins | |
parent | fa124d8877ff5f9927a6524768774d5e68b888cc (diff) | |
download | Vencord-abdf4ebb05ea9a20966096d062887a4f5c734e44.tar.gz Vencord-abdf4ebb05ea9a20966096d062887a4f5c734e44.tar.bz2 Vencord-abdf4ebb05ea9a20966096d062887a4f5c734e44.zip |
feat(plugin): NoSentryConsole (#1623)
Co-authored-by: V <vendicated@riseup.net>
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/_core/noTrack.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/_core/noTrack.ts b/src/plugins/_core/noTrack.ts index 4920ce2..79ef5a6 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)" + } + }, ] }); |