Fix NoTrack
This commit is contained in:
parent
2a56081bc2
commit
69b54535c3
1 changed files with 4 additions and 4 deletions
|
@ -24,9 +24,9 @@ export default definePlugin({
|
||||||
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, Devs.Arrow],
|
authors: [Devs.Cyn, Devs.Ven, Devs.Nuckyz, Devs.Arrow],
|
||||||
required: true,
|
required: true,
|
||||||
patches: true ? [] : [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "TRACKING_URL:",
|
find: "AnalyticsActionHandlers.handle",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /^.+$/,
|
match: /^.+$/,
|
||||||
replace: "()=>{}",
|
replace: "()=>{}",
|
||||||
|
@ -43,8 +43,8 @@ export default definePlugin({
|
||||||
find: ".METRICS,",
|
find: ".METRICS,",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /this\._intervalId.+?12e4\)/,
|
match: /this\._intervalId=/,
|
||||||
replace: ""
|
replace: "this._intervalId=undefined&&"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /(?<=increment=function\(\i\){)/,
|
match: /(?<=increment=function\(\i\){)/,
|
||||||
|
|
Loading…
Reference in a new issue