2022-10-01 00:27:28 +00:00
|
|
|
import { Devs } from "../utils/constants";
|
2022-09-02 04:08:23 +00:00
|
|
|
import definePlugin from "../utils/types";
|
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
name: "Ify",
|
2022-10-08 17:26:09 +00:00
|
|
|
description: "Disables Spotify auto-pausing and Premium checks, allowing you to listen along with others.",
|
2022-10-01 00:27:28 +00:00
|
|
|
authors: [Devs.Cyn],
|
2022-10-04 20:26:56 +00: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 04:08:23 +00:00
|
|
|
});
|