add: CleanUserArea (#477)

* add: CleanUserArea

* CleanUserArea: minor changes
This commit is contained in:
prism 2025-11-03 15:46:46 +01:00 • committed by GitHub
parent 3289fcdeb5
commit ba7b42ad5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,23 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2025 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: "CleanUserArea",
description: "Hide nameplate in the user area",
authors: [EquicordDevs.Prism],
patches: [
{
find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}",
replacement: {
match: /nameplate:\i,hovered/,
replace: "nameplate:null,hovered",
},
},
],
});

View file

@ -1182,6 +1182,10 @@ export const EquicordDevs = Object.freeze({
name: "Vei",
id: 239414094799699968n
},
Prism: {
name: "Prism",
id: 390884143749136386n
},
} satisfies Record<string, Dev>);
// iife so #__PURE__ works correctly