fix: notrack failing patches (#1857)

This commit is contained in:
megumin 2023-10-25 14:41:57 +01:00 committed by V
parent cb2532d22c
commit 4d8e4e62ca

@ -47,16 +47,17 @@ export default definePlugin({
replace: "this._intervalId=undefined&&"
},
{
match: /(?<=increment=function\(\i\){)/,
replace: "return;"
match: /(increment\(\i\){)/,
replace: "$1return;"
}
]
},
{
find: ".installedLogHooks)",
replacement: {
match: /if\(\i\.getDebugLogging\(\)&&!\i\.installedLogHooks\)/,
replace: "if(false)"
// if getDebugLogging() returns false, the hooks don't get installed.
match: "getDebugLogging(){",
replace: "getDebugLogging(){return false;"
}
},
]