From 5e1a3f50baa1aa5f34c6004fb813761d73a1c3b6 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Tue, 25 Aug 2026 11:48:36 -0400 Subject: [PATCH] vencord patch fixes Co-Authored-By: sadan <117494111+sadan4@users.noreply.github.com> --- src/plugins/_core/settings.tsx | 16 +++++----------- src/plugins/fakeNitro/index.tsx | 4 ++-- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/plugins/_core/settings.tsx b/src/plugins/_core/settings.tsx index 3b685da92..0cd61cf83 100644 --- a/src/plugins/_core/settings.tsx +++ b/src/plugins/_core/settings.tsx @@ -133,10 +133,9 @@ export default definePlugin({ replace: "$&.replace(/^./, c => c.toUpperCase())" }, { - match: /"text-xxs\/normal".{0,300}?(?=null!=(\i)&&(.{0,20}\i\.\i.{0,200}?,children:).{0,15}?("span"),({className:\i\.\i,children:\["Build Override: ",\1\.id\]\})\)\}\))/, - replace: (m, _buildOverride, makeRow, component, props) => { - props = props.replace(/children:\[.+\]/, ""); - return `${m},$self.makeInfoElements(${component},${props}).map(e=>${makeRow}e})),`; + match: /"text-xxs\/normal".{0,300}?(?=null!=(\i)&&(.{0,20}\i\.\i.{0,200}?,children:).{0,15}?("span"),{className:(\i\.\i),children:\["Build Override: ",\1\.id,\i\]\}\)\}\))/, + replace: (m, _buildOverride, makeRow, component, className) => { + return `${m},$self.makeInfoElements(${component},${className}).map(e=>${makeRow}e})),`; } }, { @@ -327,14 +326,9 @@ export default definePlugin({ return "\n" + this.getInfoRows().join("\n"); }, - makeInfoElements( - Component: ComponentType, - props: PropsWithChildren, - ) { + makeInfoElements(Component: ComponentType>, className: string) { return this.getInfoRows().map((text, i) => ( - - {text} - + {text} )); }, }); diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index ac037dbe3..0b1a90e08 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -265,8 +265,8 @@ export default definePlugin({ }, { // Disallow the emoji for premium locked if the intention doesn't allow it - match: /!(\i\.\i\.canUseEmojisEverywhere\(\i\))/, - replace: m => `(${m}&&!${IS_BYPASSEABLE_INTENTION})` + match: /(?<=!\(\i\|\|)\i\.\i\.canUseEmojisEverywhere\(\i\)/, + replace: check => `(${check}&&!${IS_BYPASSEABLE_INTENTION})` }, { // Allow animated emojis to be used if the intention allows it