Fix ify not preventing auto-pausing without premium (#28)
This commit is contained in:
parent
88542b9ede
commit
dafbd39113
@ -5,17 +5,14 @@ export default definePlugin({
|
|||||||
name: "Ify",
|
name: "Ify",
|
||||||
description: "Disabes Spotify auto-pausing and premium checks",
|
description: "Disabes Spotify auto-pausing and premium checks",
|
||||||
authors: [Devs.Cyn],
|
authors: [Devs.Cyn],
|
||||||
patches: [
|
patches: [{
|
||||||
{
|
|
||||||
find: '.displayName="SpotifyStore"',
|
find: '.displayName="SpotifyStore"',
|
||||||
replacement: [{
|
replacement: [{
|
||||||
match: /\.isPremium=.;/,
|
match: /\.isPremium=.;/,
|
||||||
replace: ".isPremium=true;",
|
replace: ".isPremium=true;"
|
||||||
}, ...["SPEAKING", "VOICE_STATE_UPDATES", "MEDIA_ENGINE_SET_DESKTOP_SOURCE"].map(event => ({
|
}, {
|
||||||
match: new RegExp(`${event}:function\\(.\\){.+?}(,|}\\))`),
|
match: /function (.{1,2})\(\).{0,200}SPOTIFY_AUTO_PAUSED\);.{0,}}}}/,
|
||||||
replace: (_, ending) => `${event}:function(){}${ending}`,
|
replace: "function $1(){}"
|
||||||
})),
|
}]
|
||||||
],
|
}]
|
||||||
},
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user