diff --git a/README.md b/README.md index 534f5266..707b27e7 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,12 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch ### Extra included plugins
-164 additional plugins +165 additional plugins ### All Platforms - AllCallTimers by MaxHerbold & D3SOX - AltKrispSwitch by newwares +- AlwaysExpandProfile by thororen - AmITyping by MrDiamond - Anammox by Kyuuhachi - AtSomeone by Joona diff --git a/src/equicordplugins/alwaysExpandProfile/index.ts b/src/equicordplugins/alwaysExpandProfile/index.ts new file mode 100644 index 00000000..42cee83a --- /dev/null +++ b/src/equicordplugins/alwaysExpandProfile/index.ts @@ -0,0 +1,28 @@ +/* + * 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 { openUserProfile } from "@utils/discord"; +import definePlugin from "@utils/types"; +import { User } from "discord-types/general"; + +export default definePlugin({ + name: "AlwaysExpandProfile", + description: "Always display a user's full popout", + authors: [EquicordDevs.thororen], + patches: [ + { + find: ".hasAvatarForGuild(null==", + replacement: { + match: /(?<=user:(\i).*?===\i\.id.*?)return/, + replace: "return $self.openUserProfile($1) ||" + } + } + ], + openUserProfile(user: User) { + openUserProfile(user.id); + } +});