Fix Patches

This commit is contained in:
thororen1234 2026-03-12 21:28:22 -04:00
parent 377f751d46
commit 9b69d9b33f
No known key found for this signature in database
5 changed files with 5 additions and 5 deletions

View file

@ -206,7 +206,7 @@ export default definePlugin({
},
// Force Role Icon
{
find: "Message Username",
find: '"role-icon-children"',
predicate: () => settings.store.forceRoleIcon,
replacement: {
match: /(?<=\}\):null\].{0,150}\?2:)0(?=\})/,

View file

@ -271,7 +271,7 @@ export default definePlugin({
}
},
{
find: '"Message Username"',
find: '"role-icon-children"',
replacement: {
// thanks https://github.com/Syncxv/vc-timezones/pull/4
match: /(?<=isVisibleOnlyOnHover.+?)id:.{1,11},timestamp.{1,50}}\),/,

View file

@ -138,7 +138,7 @@ export default definePlugin({
replace: "...$1.props,$&"
},
{
match: /(?<=forceOpen:.{0,40}?\i\((\i)\.id\).{0,100}?)children:/,
match: /(?<=__unsupportedReactNodeAsText:\i,forceOpen:.{0,40}?)children:(?=.{0,5}\$\{(\i)\.id\})/,
replace: "children:$1.component?$self.renderBadgeComponent({...$1}) :"
},
// handle onClick and onContextMenu

View file

@ -30,7 +30,7 @@ export default definePlugin({
patches: [
{
find: '"Message Username"',
find: '"role-icon-children"',
replacement: {
match: /#{intl::GUILD_COMMUNICATION_DISABLED_BOTTOM_SHEET_TITLE}.+?renderPopout:.+?(?=\])/,
replace: "$&,Vencord.Api.MessageDecorations.__addDecorationsToMessage(arguments[0])"

View file

@ -97,7 +97,7 @@ export default definePlugin({
]
},
...[
'"Message Username"', // Messages
'"role-icon-children"', // Messages
"#{intl::COLLECTIBLES_NAMEPLATE_PREVIEW_A11Y}", // Nameplate preview
"#{intl::COLLECTIBLES_PROFILE_PREVIEW_A11Y}", // Avatar preview
].map(find => ({