2022-09-30 20:27:28 -04:00
|
|
|
import { Devs } from "../utils/constants";
|
2022-09-02 00:08:23 -04:00
|
|
|
import definePlugin from "../utils/types";
|
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
name: "Ify",
|
2022-10-08 13:26:09 -04:00
|
|
|
description: "Disables Spotify auto-pausing and Premium checks, allowing you to listen along with others.",
|
2022-09-30 20:27:28 -04:00
|
|
|
authors: [Devs.Cyn],
|
2022-10-04 16:26:56 -04:00
|
|
|
patches: [{
|
|
|
|
find: '.displayName="SpotifyStore"',
|
|
|
|
replacement: [{
|
|
|
|
match: /\.isPremium=.;/,
|
|
|
|
replace: ".isPremium=true;"
|
|
|
|
}, {
|
|
|
|
match: /function (.{1,2})\(\).{0,200}SPOTIFY_AUTO_PAUSED\);.{0,}}}}/,
|
|
|
|
replace: "function $1(){}"
|
|
|
|
}]
|
|
|
|
}]
|
2022-09-02 00:08:23 -04:00
|
|
|
});
|