aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/ify.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-09-27 14:34:57 +0200
committerVendicated <vendicated@riseup.net>2022-09-27 14:34:57 +0200
commit6398dd25d20e6bc3e02425b709233066baf64e0c (patch)
tree3502593fdb4912c678ce6e840726114ccdb8c218 /src/plugins/ify.ts
parentd0940a8b194805173dae029d0fe284974ffecc7a (diff)
downloadVencord-6398dd25d20e6bc3e02425b709233066baf64e0c.tar.gz
Vencord-6398dd25d20e6bc3e02425b709233066baf64e0c.tar.bz2
Vencord-6398dd25d20e6bc3e02425b709233066baf64e0c.zip
Unbrick Vencord - Pt 1
Diffstat (limited to 'src/plugins/ify.ts')
-rw-r--r--src/plugins/ify.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/ify.ts b/src/plugins/ify.ts
index 76cfa59..e0d5481 100644
--- a/src/plugins/ify.ts
+++ b/src/plugins/ify.ts
@@ -7,17 +7,14 @@ export default definePlugin({
patches: [
{
find: '.displayName="SpotifyStore"',
- replacement: {
+ replacement: [{
match: /\.isPremium=.;/,
replace: ".isPremium=true;",
- },
- },
- {
- find: '.displayName="SpotifyStore"',
- replacement: ["SPEAKING", "VOICE_STATE_UPDATES", "MEDIA_ENGINE_SET_DESKTOP_SOURCE"].map(event => ({
+ }, ...["SPEAKING", "VOICE_STATE_UPDATES", "MEDIA_ENGINE_SET_DESKTOP_SOURCE"].map(event => ({
match: new RegExp(`${event}:function\\(.\\){.+?}(,|}\\))`),
replace: (_, ending) => `${event}:function(){}${ending}`,
})),
+ ],
},
]
});