ProfileSectionsAPI: Fix Patch

This commit is contained in:
thororen1234 2026-06-18 15:34:06 -04:00
parent 563688e2b1
commit 269f1c24f7
No known key found for this signature in database
3 changed files with 3 additions and 5 deletions

View file

@ -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})",
}
},

View file

@ -62,8 +62,6 @@ export default definePlugin({
useEffect(() => {
const listener = () => {
if (!editorRef?.current) return setSelectedCount(0);
setSelectedCount(document.getSelection()?.toString()?.length ?? 0);
};

View file

@ -15,5 +15,5 @@
}
.vc-charCounter-selected {
color: #4285F4
color: var(--vc-char-count-selected-color, --brand-500);
}