feat(ShowSongName): new plugin (#653)

This commit is contained in:
prism 2026-01-17 17:37:03 +01:00 • committed by GitHub
parent 8e34ec26fe
commit 36a4fab93a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,24 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2026 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
export default definePlugin({
name: "ShowSongName",
description: "Shows song name instead of artist for Spotify activity",
authors: [EquicordDevs.Prism],
patches: [
{
find: '.join(", ");return{text:',
replacement: {
match: /(?<=.join\(", "\);return\{text:)\i/,
replace: "arguments[0]?.details??$&"
}
}
]
});