Vencord/src/plugins/ify.ts

19 lines
589 B
TypeScript
Raw Normal View History

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",
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],
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
});