|
|
|
@ -5,17 +5,14 @@ export default definePlugin({
|
|
|
|
|
name: "Ify",
|
|
|
|
|
description: "Disabes Spotify auto-pausing and premium checks",
|
|
|
|
|
authors: [Devs.Cyn],
|
|
|
|
|
patches: [
|
|
|
|
|
{
|
|
|
|
|
find: '.displayName="SpotifyStore"',
|
|
|
|
|
replacement: [{
|
|
|
|
|
match: /\.isPremium=.;/,
|
|
|
|
|
replace: ".isPremium=true;",
|
|
|
|
|
}, ...["SPEAKING", "VOICE_STATE_UPDATES", "MEDIA_ENGINE_SET_DESKTOP_SOURCE"].map(event => ({
|
|
|
|
|
match: new RegExp(`${event}:function\\(.\\){.+?}(,|}\\))`),
|
|
|
|
|
replace: (_, ending) => `${event}:function(){}${ending}`,
|
|
|
|
|
})),
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
patches: [{
|
|
|
|
|
find: '.displayName="SpotifyStore"',
|
|
|
|
|
replacement: [{
|
|
|
|
|
match: /\.isPremium=.;/,
|
|
|
|
|
replace: ".isPremium=true;"
|
|
|
|
|
}, {
|
|
|
|
|
match: /function (.{1,2})\(\).{0,200}SPOTIFY_AUTO_PAUSED\);.{0,}}}}/,
|
|
|
|
|
replace: "function $1(){}"
|
|
|
|
|
}]
|
|
|
|
|
}]
|
|
|
|
|
});
|
|
|
|
|