ReviewDB: Add view review button to other profiles types

This commit is contained in:
Nuckyz 2024-08-23 18:50:05 -03:00
parent f0e6986835
commit 1e8f59f13d
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -79,8 +79,22 @@ export default definePlugin({
{ {
find: ".BITE_SIZE,user:", find: ".BITE_SIZE,user:",
replacement: { replacement: {
match: /(?<=\.BITE_SIZE,children:\[)\(0,\i\.jsx\)\(\i\.\i,\{user:(\i),/, match: /{profileType:\i\.\i\.BITE_SIZE,children:\[/,
replace: "$self.BiteSizeReviewsButton({user:$1}),$&" replace: "$&$self.BiteSizeReviewsButton({user:arguments[0].user}),"
}
},
{
find: ".FULL_SIZE,user:",
replacement: {
match: /{profileType:\i\.\i\.FULL_SIZE,children:\[/,
replace: "$&$self.BiteSizeReviewsButton({user:arguments[0].user}),"
}
},
{
find: ".PANEL,isInteractionSource:",
replacement: {
match: /{profileType:\i\.\i\.PANEL,children:\[/,
replace: "$&$self.BiteSizeReviewsButton({user:arguments[0].user}),"
} }
} }
], ],