fix RCE, fullUserInChatbox

This commit is contained in:
sadan 2026-02-04 21:57:24 -05:00
parent c159c2c6f8
commit b4793224b4
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ export default definePlugin({
patches: [
{
// Same find as RoleColorEverywhere chatbox mentions
find: ':"text":',
find: '"text":"locked"',
replacement: {
match: /(hidePersonalInformation\).+?)(if\(null!=\i\){.+?return \i)(?=})/,
replace: "$1return $self.UserMentionComponent({...arguments[0],originalComponent:()=>{$2}});"

View file

@ -92,7 +92,7 @@ export default definePlugin({
// Slate
{
// Same find as FullUserInChatbox
find: ':"text":',
find: '"text":"locked"',
replacement: [
{
match: /let\{id:(\i),guildId:\i,channelId:(\i)[^}]*\}.*?\.\i,{(?=children)/,