Fix Patches

This commit is contained in:
thororen1234 2026-01-28 18:46:08 -05:00
parent 9fc100fa9b
commit 6b2c5f6935
No known key found for this signature in database
5 changed files with 10 additions and 11 deletions

View file

@ -111,7 +111,10 @@ export default definePlugin({
{
// Gift button
find: '"sticker")',
replacement: { match: /&&\i\.push\(\{[^&]*?,"gift"\)\}\)/, replace: "", },
replacement: {
match: /&&\i\.push\(\([^&]*?,"gift"\)\)/,
replace: "",
},
predicate: () => settings.store.gift,
},
{

View file

@ -48,7 +48,7 @@ export default definePlugin({
},
{
// Show all activities in the user popout/sidebar
find: '"UserProfilePopoutBody"',
find: /\.POPOUT,onClose:\i}\),nicknameIcons:.+?\.isProvisional/,
replacement: {
match: /((\i)=.{0,10}(\i)\.id\).*?,onInteraction:\i\}\),).{0,250}onClose:\i\}\)/,
replace: "$1$self.showAllActivitiesComponent({ activity: $2, user: $3 })"

View file

@ -230,7 +230,7 @@ export default definePlugin({
{
find: '"sticker")',
replacement: {
match: /(\(\)\(\i\.\i,.{0,50}children:)(.+?)\}/,
match: /("div",\{.{0,15}children:)(.+?)\}/,
replace: "$1$self.wrapChatBarChildren($2)}"
}
}

View file

@ -81,7 +81,7 @@ export default definePlugin({
{
find: '"sticker")',
replacement: {
match: /(?<=\(\)\(\i\.\i,.{0,50}children:)(.+?)\}/,
match: /(?<="div",\{.{0,15}children:)(.+?)\}/,
replace: "$self.buttonsInner($1)}"
}
}

View file

@ -50,13 +50,9 @@ export default definePlugin({
find: ".gifts)",
replacement: [
{
match: /(?<=(,\(null==\(\i=\i\.stickers\)\?void 0.*?\i\.push\(\{).{0,15}node:(.{0,50})},"sticker"\)\}\))/,
replace: "$1key:\"stickers+\",node:$2,stickersType:\"stickers+\"},\"stickers+\")})"
match: /(?<=(,\(null==\(\i=\i\.stickers\)\?void 0.*?\i\.push\(\(.{0,100})\},"sticker"\)\))/,
replace: "$1,stickersType:\"stickers+\"},\"stickers+\"))"
},
{
match: /(?<="submit"\)\}\);)(?=.{0,50}null!=(\i))/,
replace: '$1["stickers+"]=3;'
}
]
},
{
@ -67,7 +63,7 @@ export default definePlugin({
replace: ',vcStickers=$1?$2($3,{id:"stickers+-picker-tab","aria-controls":"more-stickers-picker-tab-panel","aria-selected":$4==="stickers+",isActive:$4==="stickers+",autoFocus:true,viewType:"stickers+",children:$5+"+"})}):null'
},
{
match: /children:\[\i,\i(?=.{0,5}\}\))/g,
match: /children:\[\i,\i(?=.{0,150}\.SOUNDBOARD)/g,
replace: "$&,vcStickers"
},
{