Vencord/src/plugins/ify.ts

19 lines
545 B
TypeScript
Raw Normal View History

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",
description: "Disabes Spotify auto-pausing and premium checks",
2022-10-01 00:27:28 +00: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 04:08:23 +00:00
});