From fec51b3683180453b8b6cc346829486c0ea7ec4d Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 11 Dec 2024 23:52:51 -0500 Subject: [PATCH] Drop DeadMembers And MoreThemes TEMP --- README.md | 6 +-- src/equicordplugins/deadMembers/index.tsx | 62 ----------------------- src/equicordplugins/moreThemes/index.ts | 34 ------------- 3 files changed, 2 insertions(+), 100 deletions(-) delete mode 100644 src/equicordplugins/deadMembers/index.tsx delete mode 100644 src/equicordplugins/moreThemes/index.ts diff --git a/README.md b/README.md index 4f87a96c..2307ffbd 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch ### Extra included plugins
-151 additional plugins +149 additional plugins ### All Platforms - AllCallTimers by MaxHerbold & D3SOX @@ -42,7 +42,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch - CuteNekos by echo - CutePats by thororen - DecodeBase64 by ThePirateStoner -- DeadMembers by Kyuuhachi - Demonstration by Samwich - DisableAnimations by S€th - DisableCameras by Joona @@ -97,7 +96,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch - MessageTranslate by Samwich - ModalFade by Kyuuhachi - MoreStickers by Leko & Arjix -- MoreThemes by Kyuuhachi - NewPluginsManager by Sqaaakoi - NoAppsAllowed by kvba - NoBulletPoints by Samwich @@ -191,7 +189,7 @@ Linux ```shell sh -c "$(curl -sS https://raw.githubusercontent.com/Equicord/Equicord/refs/heads/main/misc/install.sh)" ``` - + ## Installing Equicord Devbuild ### Dependencies diff --git a/src/equicordplugins/deadMembers/index.tsx b/src/equicordplugins/deadMembers/index.tsx deleted file mode 100644 index 1da633c8..00000000 --- a/src/equicordplugins/deadMembers/index.tsx +++ /dev/null @@ -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 - : ; - }, - - wrapForumAuthor({ channel, user }, text) { - return !user - ? text - : ; - }, -}); - - -function DeadIndicator({ channel, userId, text }) { - const isMember = useStateFromStores( - [GuildMemberStore], - () => GuildMemberStore.isMember(channel?.guild_id, userId), - ); - return channel?.guild_id && !isMember ? {text} : text; -} diff --git a/src/equicordplugins/moreThemes/index.ts b/src/equicordplugins/moreThemes/index.ts deleted file mode 100644 index 9627dac4..00000000 --- a/src/equicordplugins/moreThemes/index.ts +++ /dev/null @@ -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" - }, - } - ], -});