diff --git a/README.md b/README.md index 1f8bf257..e1abfc5d 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
-126 additional plugins +124 additional plugins - AllCallTimers by MaxHerbold & D3SOX - AltKrispSwitch by newwares @@ -34,7 +34,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch - CuteAnimeBoys by ShadyGoat - CuteNekos by echo - CutePats by thororen -- DeadMembers by Kyuuhachi - Demonstration by Samwich - DisableCameras by Joona - DoNotLeak by Perny @@ -105,7 +104,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch - ScreenRecorder by AutumnVN (Vesktop & Equibop only) - SearchFix by Jaxx - SekaiStickers by MaiKokain -- ServerSearch by camila314 - Shakespearean by vmohammad (Dev build only) - ShowBadgesInChat by Inbestigator & KrystalSkull - Slap by Korbo diff --git a/src/equicordplugins/channelTabs/index.tsx b/src/equicordplugins/channelTabs/index.tsx index aa88ca7b..0743fb3c 100644 --- a/src/equicordplugins/channelTabs/index.tsx +++ b/src/equicordplugins/channelTabs/index.tsx @@ -79,7 +79,7 @@ export default definePlugin({ { find: ".messagesPopoutWrap", replacement: { - match: /\i&&\((\i).maxHeight-=\d{1,3}\)/, + match: /\i&&\((\i).maxHeight.{1,5}\)/, replace: "$&;$1.maxHeight-=$self.containerHeight" } }, diff --git a/src/equicordplugins/clientSideBlock/index.tsx b/src/equicordplugins/clientSideBlock/index.tsx index 549dd3d8..d7c5f657 100644 --- a/src/equicordplugins/clientSideBlock/index.tsx +++ b/src/equicordplugins/clientSideBlock/index.tsx @@ -216,7 +216,7 @@ export default definePlugin({ { find: "}getMutualFriends(", replacement: { - match: /(getMutualFriends\(\i\){)return (\i\[\i\])/, + match: /(getMutualFriends\(\i\){)return (\i\.get\(\i\))/, replace: "$1if($2 != undefined) return $2.filter(u => !$self.shouldHideUser(u.key))" } } diff --git a/src/equicordplugins/deadMembers/index.tsx b/src/equicordplugins/deadMembers/index.tsx deleted file mode 100644 index 7e253de4..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: "Messages.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/messageColors/index.tsx b/src/equicordplugins/messageColors/index.tsx index 6dd0ea4f..4d79a6c5 100644 --- a/src/equicordplugins/messageColors/index.tsx +++ b/src/equicordplugins/messageColors/index.tsx @@ -55,8 +55,8 @@ export default definePlugin({ find: ".defaultRules.text,match:", group: true, replacement: { - // $)/) - match: /\$\)\/\)}/, + // $) + match: /\$\)/, // hsl(|rgb(|$& replace: requiredFirstCharacters.join("|") + "|$&", }, diff --git a/src/equicordplugins/messageLoggerEnhanced/index.tsx b/src/equicordplugins/messageLoggerEnhanced/index.tsx index c1a4587a..f6ea460e 100644 --- a/src/equicordplugins/messageLoggerEnhanced/index.tsx +++ b/src/equicordplugins/messageLoggerEnhanced/index.tsx @@ -580,8 +580,8 @@ export default definePlugin({ { find: '"MessageStore"', replacement: { - match: /LOAD_MESSAGES_SUCCESS:function\(\i\){/, - replace: "$&$self.messageLoadSuccess(arguments[0]);" + match: /getOrCreate\(\i\);\i=\i\.loadComplete.*?}\),/, + replace: "$self.messageLoadSuccess(arguments[0]);" } }, diff --git a/src/equicordplugins/modalFade/index.tsx b/src/equicordplugins/modalFade/index.tsx index 1d858b2e..b2304a95 100644 --- a/src/equicordplugins/modalFade/index.tsx +++ b/src/equicordplugins/modalFade/index.tsx @@ -58,12 +58,12 @@ export default definePlugin({ } }, { - find: "{})).SUBTLE=\"SUBTLE\"", + find: ".SUBTLE=\"SUBTLE\"", replacement: { match: /\(0,\i\.useTransition\)*/, replace: "$self.nullTransition" } - }, + } ], nullTransition(value: any, args: object) { diff --git a/src/equicordplugins/replaceActivityTypes/index.tsx b/src/equicordplugins/replaceActivityTypes/index.tsx index 13644e18..caf9f2a3 100644 --- a/src/equicordplugins/replaceActivityTypes/index.tsx +++ b/src/equicordplugins/replaceActivityTypes/index.tsx @@ -53,9 +53,9 @@ export default definePlugin({ patches: [ // how has this patch not broken yet lol (i do not like fixing patches tho) { - find: '="LocalActivityStore",', + find: '"LocalActivityStore"', replacement: { - match: /LOCAL_ACTIVITY_UPDATE:function\((\i)\)\{/, + match: /\i\((\i)\)\{.{0,50}activity.{0,10}=\i;/, replace: "$&$self.patchActivity($1.activity);", } } diff --git a/src/equicordplugins/serverSearch/index.tsx b/src/equicordplugins/serverSearch/index.tsx deleted file mode 100644 index 9f1f1df9..00000000 --- a/src/equicordplugins/serverSearch/index.tsx +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Vencord, a Discord client mod - * Copyright (c) 2023 Vendicated, camila314, and contributors - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -import "./styles.css"; - -import { addServerListElement, removeServerListElement, ServerListRenderPosition } from "@api/ServerList"; -import ErrorBoundary from "@components/ErrorBoundary"; -import { EquicordDevs } from "@utils/constants"; -import definePlugin from "@utils/types"; -import { findByCodeLazy } from "@webpack"; -import { Tooltip } from "webpack/common/components"; - -const openPopout = findByCodeLazy(".QUICKSWITCHER_OPENED,{"); -function SearchIcon() { - return ( - - - - ); -} - -export default definePlugin({ - name: "ServerSearch", - authors: [EquicordDevs.camila314], - description: "Navigate your servers better with a quick search button", - - renderButton() { - return -
- - {({ onMouseEnter, onMouseLeave }) => ( -
openPopout("DM_SEARCH")}> - -
- )} -
-
-
; - }, - - start() { - addServerListElement(ServerListRenderPosition.Above, this.renderButton); - }, - - stop() { - removeServerListElement(ServerListRenderPosition.Above, this.renderButton); - } -}); diff --git a/src/equicordplugins/serverSearch/styles.css b/src/equicordplugins/serverSearch/styles.css deleted file mode 100644 index db2e745a..00000000 --- a/src/equicordplugins/serverSearch/styles.css +++ /dev/null @@ -1,33 +0,0 @@ -#vc-searchbutton-container { - width: 100%; - display: flex; - align-items: center; - justify-content: center; - margin-bottom: 8px; -} - -#vc-searchbutton { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - background-color: var(--background-primary); - height: 48px; - width: 48px; - border-radius: 100%; - transition: border-radius 0.15s ease-out, background-color 0.15s ease-out; -} - -#vc-searchbutton-icon { - color: var(--text-normal); -} - -#vc-searchbutton:hover { - border-radius: 34%; - background-color: var(--green-360); - cursor: pointer; -} - -#vc-searchbutton:hover #vc-searchbutton-icon { - color: var(--white-500); -} diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx index 4f9fcf30..bbafb58d 100644 --- a/src/plugins/showMeYourName/index.tsx +++ b/src/plugins/showMeYourName/index.tsx @@ -48,7 +48,7 @@ export default definePlugin({ authors: [Devs.Rini, Devs.TheKodeToad], patches: [ { - find: '?"@":"")', + find: '?"@":""', replacement: { match: /(?<=onContextMenu:\i,children:).*?\)}/, replace: "$self.renderUsername(arguments[0])}"