feat(plugin): NoSentryConsole (#1623)

Co-authored-by: V <vendicated@riseup.net>
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
main
Arrow 1 year ago committed by GitHub
parent fa124d8877
commit abdf4ebb05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,7 +22,7 @@ import definePlugin from "@utils/types";
export default definePlugin({ export default definePlugin({
name: "NoTrack", name: "NoTrack",
description: "Disable Discord's tracking ('science'), metrics and Sentry crash reporting", 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, required: true,
patches: [ patches: [
{ {
@ -51,6 +51,13 @@ export default definePlugin({
replace: "return;" replace: "return;"
} }
] ]
},
{
find: ".installedLogHooks)",
replacement: {
match: /if\(\i\.getDebugLogging\(\)&&!\i\.installedLogHooks\)/,
replace: "if(false)"
} }
},
] ]
}); });

@ -339,6 +339,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({
name: "Rini", name: "Rini",
id: 1079479184478441643n id: 1079479184478441643n
}, },
Arrow: {
name: "arrow",
id: 958158495302176778n
},
} satisfies Record<string, Dev>); } satisfies Record<string, Dev>);
// iife so #__PURE__ works correctly // iife so #__PURE__ works correctly

Loading…
Cancel
Save