mirror of
https://github.com/Equicord/Equicord.git
synced 2025-07-02 01:44:23 -04:00
Unbrick Vencord - Pt 1
This commit is contained in:
parent
d0940a8b19
commit
6398dd25d2
9 changed files with 34 additions and 48 deletions
|
@ -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}`,
|
||||
})),
|
||||
],
|
||||
},
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue