diff options
author | Justice Almanzar <superdash993@gmail.com> | 2022-12-08 22:32:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 04:32:16 +0100 |
commit | ebb8da0f2336df9267e734f2ba134f1a25afcfb6 (patch) | |
tree | 479a3e87ad39ae792e487f23e98abf9a9202b6ac /src/plugins/fakeNitro.ts | |
parent | f2e0542614bd47ecb5e8ad9c2f7f2d7476c50ee1 (diff) | |
download | Vencord-ebb8da0f2336df9267e734f2ba134f1a25afcfb6.tar.gz Vencord-ebb8da0f2336df9267e734f2ba134f1a25afcfb6.tar.bz2 Vencord-ebb8da0f2336df9267e734f2ba134f1a25afcfb6.zip |
fix(FakeNitro): more reliable patches (#304)
Diffstat (limited to 'src/plugins/fakeNitro.ts')
-rw-r--r-- | src/plugins/fakeNitro.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts index 0a1985a..e5ac3b9 100644 --- a/src/plugins/fakeNitro.ts +++ b/src/plugins/fakeNitro.ts @@ -71,8 +71,8 @@ export default definePlugin({ "canUseEmojisEverywhere" ].map(func => { return { - match: new RegExp(`${func}:function\\(.+?}`), - replace: `${func}:function(e){return true;}` + match: new RegExp(`${func}:function\\(.+?\\{`), + replace: "$&return true;" }; }) }, @@ -80,8 +80,8 @@ export default definePlugin({ find: "canUseAnimatedEmojis:function", predicate: () => Settings.plugins.FakeNitro.enableStickerBypass === true, replacement: { - match: /canUseStickersEverywhere:function\(.+?}/, - replace: "canUseStickersEverywhere:function(e){return true;}" + match: /canUseStickersEverywhere:function\(.+?\{/, + replace: "$&return true;" }, }, { @@ -101,8 +101,8 @@ export default definePlugin({ "canStreamMidQuality" ].map(func => { return { - match: new RegExp(`${func}:function\\(.+?}`), - replace: `${func}:function(e){return true;}` + match: new RegExp(`${func}:function\\(.+?\\{`), + replace: "$&return true;" }; }) }, |