blob: 2b5d86f4e2f451b0d638a1f80d73ae9d80daf93c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { Devs } from "../utils/constants";
import definePlugin from "../utils/types";
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;"
}, {
match: /function (.{1,2})\(\).{0,200}SPOTIFY_AUTO_PAUSED\);.{0,}}}}/,
replace: "function $1(){}"
}]
}]
});
|