mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-30 19:23:29 -05:00
Drop DeadMembers And MoreThemes TEMP
This commit is contained in:
parent
f82f02085a
commit
fec51b3683
3 changed files with 2 additions and 100 deletions
|
@ -10,7 +10,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
|
|
||||||
### Extra included plugins
|
### Extra included plugins
|
||||||
<details>
|
<details>
|
||||||
<summary>151 additional plugins</summary>
|
<summary>149 additional plugins</summary>
|
||||||
|
|
||||||
### All Platforms
|
### All Platforms
|
||||||
- AllCallTimers by MaxHerbold & D3SOX
|
- AllCallTimers by MaxHerbold & D3SOX
|
||||||
|
@ -42,7 +42,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- CuteNekos by echo
|
- CuteNekos by echo
|
||||||
- CutePats by thororen
|
- CutePats by thororen
|
||||||
- DecodeBase64 by ThePirateStoner
|
- DecodeBase64 by ThePirateStoner
|
||||||
- DeadMembers by Kyuuhachi
|
|
||||||
- Demonstration by Samwich
|
- Demonstration by Samwich
|
||||||
- DisableAnimations by S€th
|
- DisableAnimations by S€th
|
||||||
- DisableCameras by Joona
|
- DisableCameras by Joona
|
||||||
|
@ -97,7 +96,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- MessageTranslate by Samwich
|
- MessageTranslate by Samwich
|
||||||
- ModalFade by Kyuuhachi
|
- ModalFade by Kyuuhachi
|
||||||
- MoreStickers by Leko & Arjix
|
- MoreStickers by Leko & Arjix
|
||||||
- MoreThemes by Kyuuhachi
|
|
||||||
- NewPluginsManager by Sqaaakoi
|
- NewPluginsManager by Sqaaakoi
|
||||||
- NoAppsAllowed by kvba
|
- NoAppsAllowed by kvba
|
||||||
- NoBulletPoints by Samwich
|
- NoBulletPoints by Samwich
|
||||||
|
@ -191,7 +189,7 @@ Linux
|
||||||
```shell
|
```shell
|
||||||
sh -c "$(curl -sS https://raw.githubusercontent.com/Equicord/Equicord/refs/heads/main/misc/install.sh)"
|
sh -c "$(curl -sS https://raw.githubusercontent.com/Equicord/Equicord/refs/heads/main/misc/install.sh)"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installing Equicord Devbuild
|
## Installing Equicord Devbuild
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
/*
|
|
||||||
* Vencord, a Discord client mod
|
|
||||||
* Copyright (c) 2024 Vendicated and contributors
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { Devs } from "@utils/constants";
|
|
||||||
import definePlugin from "@utils/types";
|
|
||||||
import { ChannelStore, GuildMemberStore, useStateFromStores } from "@webpack/common";
|
|
||||||
|
|
||||||
export default definePlugin({
|
|
||||||
name: "DeadMembers",
|
|
||||||
description: "Shows when the sender of a message has left the guild",
|
|
||||||
authors: [Devs.Kyuuhachi],
|
|
||||||
|
|
||||||
patches: [
|
|
||||||
{
|
|
||||||
find: '.BADGES=1]="BADGES"',
|
|
||||||
replacement: {
|
|
||||||
match: /(\i)=\{className:\i.username,style:.*?onContextMenu:\i,children:.*?\},/,
|
|
||||||
replace: "$&__dummyvar=($1.children=$self.wrapMessageAuthor(arguments[0],$1.children)),"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
find: "#{intl::FORUM_POST_AUTHOR_A11Y_LABEL}",
|
|
||||||
replacement: {
|
|
||||||
match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\(\i\.Fragment,{children:)\i(?=}\),)/,
|
|
||||||
replace: "$self.wrapForumAuthor({...$1,$2},$&)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
],
|
|
||||||
|
|
||||||
wrapMessageAuthor({ message }, text) {
|
|
||||||
const channel = ChannelStore.getChannel(message.channel_id);
|
|
||||||
return message.webhookId
|
|
||||||
? text
|
|
||||||
: <DeadIndicator
|
|
||||||
channel={channel}
|
|
||||||
userId={message.author.id}
|
|
||||||
text={text}
|
|
||||||
/>;
|
|
||||||
},
|
|
||||||
|
|
||||||
wrapForumAuthor({ channel, user }, text) {
|
|
||||||
return !user
|
|
||||||
? text
|
|
||||||
: <DeadIndicator
|
|
||||||
channel={channel}
|
|
||||||
userId={user.id}
|
|
||||||
text={text}
|
|
||||||
/>;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
function DeadIndicator({ channel, userId, text }) {
|
|
||||||
const isMember = useStateFromStores(
|
|
||||||
[GuildMemberStore],
|
|
||||||
() => GuildMemberStore.isMember(channel?.guild_id, userId),
|
|
||||||
);
|
|
||||||
return channel?.guild_id && !isMember ? <s className="c98-author-dead">{text}</s> : text;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
/*
|
|
||||||
* Vencord, a Discord client mod
|
|
||||||
* Copyright (c) 2024 Vendicated and contributors
|
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { Devs } from "@utils/constants";
|
|
||||||
import definePlugin from "@utils/types";
|
|
||||||
|
|
||||||
export default definePlugin({
|
|
||||||
name: "MoreThemes",
|
|
||||||
description: "Enables Darker and Midnight themes",
|
|
||||||
authors: [Devs.Kyuuhachi],
|
|
||||||
|
|
||||||
patches: [
|
|
||||||
{
|
|
||||||
// matches twice: the settings menu and the settings context menu
|
|
||||||
find: '("appearance_settings")',
|
|
||||||
replacement: {
|
|
||||||
match: /\("appearance_settings"\)/,
|
|
||||||
replace: "$&||true"
|
|
||||||
},
|
|
||||||
all: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
// make it actually save the setting instead of falling back to dark
|
|
||||||
find: 'getCurrentConfig({location:"ThemeStore"}).enabled',
|
|
||||||
replacement: {
|
|
||||||
match: /getCurrentConfig\(\{location:"ThemeStore"\}\)\.enabled/,
|
|
||||||
replace: "$&&&false"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
],
|
|
||||||
});
|
|
Loading…
Reference in a new issue