From 269f1c24f7c2284b6ba7b0252187c5dab798136b Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 18 Jun 2026 15:34:06 -0400 Subject: [PATCH] ProfileSectionsAPI: Fix Patch --- src/equicordplugins/_api/profileSections.ts | 4 ++-- src/plugins/characterCounter/index.tsx | 2 -- src/plugins/characterCounter/style.css | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/equicordplugins/_api/profileSections.ts b/src/equicordplugins/_api/profileSections.ts index aeddbb285..b63c787e5 100644 --- a/src/equicordplugins/_api/profileSections.ts +++ b/src/equicordplugins/_api/profileSections.ts @@ -14,9 +14,9 @@ export default definePlugin({ patches: [ // dm user sidebar { - find: "#{intl::PROVISIONAL_ACCOUNT}),headingIcon:", + find: ".SIDEBAR,disableToolbar:", replacement: { - match: /(#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id)}\)}\))/, + match: /(#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id)\}\)\}\))(?=.{0,200}#{intl::USER_PROFILE_WISHLIST})/, replace: "$1,Vencord.Api.ProfileSections.renderProfileSections({userId:$2,isSideBar:true})", } }, diff --git a/src/plugins/characterCounter/index.tsx b/src/plugins/characterCounter/index.tsx index 6bff79c50..bd4beb922 100644 --- a/src/plugins/characterCounter/index.tsx +++ b/src/plugins/characterCounter/index.tsx @@ -62,8 +62,6 @@ export default definePlugin({ useEffect(() => { const listener = () => { - if (!editorRef?.current) return setSelectedCount(0); - setSelectedCount(document.getSelection()?.toString()?.length ?? 0); }; diff --git a/src/plugins/characterCounter/style.css b/src/plugins/characterCounter/style.css index 87f7d775a..fc6d873dc 100644 --- a/src/plugins/characterCounter/style.css +++ b/src/plugins/characterCounter/style.css @@ -15,5 +15,5 @@ } .vc-charCounter-selected { - color: #4285F4 + color: var(--vc-char-count-selected-color, --brand-500); } \ No newline at end of file