feat(plugin): AlwaysExpandProfile

This commit is contained in:
thororen1234 2025-03-19 13:58:46 -04:00
parent d2f9356f84
commit 90d62b672c
No known key found for this signature in database
2 changed files with 30 additions and 1 deletions

View file

@ -10,11 +10,12 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
### Extra included plugins
<details>
<summary>164 additional plugins</summary>
<summary>165 additional plugins</summary>
### All Platforms
- AllCallTimers by MaxHerbold & D3SOX
- AltKrispSwitch by newwares
- AlwaysExpandProfile by thororen
- AmITyping by MrDiamond
- Anammox by Kyuuhachi
- AtSomeone by Joona

View file

@ -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);
}
});