Fix Patches
This commit is contained in:
parent
377f751d46
commit
9b69d9b33f
5 changed files with 5 additions and 5 deletions
|
|
@ -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(?=\})/,
|
||||
|
|
|
|||
|
|
@ -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}}\),/,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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])"
|
||||
|
|
|
|||
|
|
@ -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 => ({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue