feat(ShowSongName): new plugin (#653)
This commit is contained in:
parent
8e34ec26fe
commit
36a4fab93a
1 changed files with 24 additions and 0 deletions
24
src/equicordplugins/showSongName/index.tsx
Normal file
24
src/equicordplugins/showSongName/index.tsx
Normal 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??$&"
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue