mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 13:11:57 -04:00
feat(plugin): AlwaysExpandProfile
This commit is contained in:
parent
d2f9356f84
commit
90d62b672c
2 changed files with 30 additions and 1 deletions
|
@ -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
|
||||
|
|
28
src/equicordplugins/alwaysExpandProfile/index.ts
Normal file
28
src/equicordplugins/alwaysExpandProfile/index.ts
Normal 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);
|
||||
}
|
||||
});
|
Loading…
Add table
Reference in a new issue