Fix broken patches
This commit is contained in:
parent
e1f8b3cb30
commit
0983a038f1
3 changed files with 5 additions and 5 deletions
|
@ -13,10 +13,10 @@ export default definePlugin({
|
||||||
authors: [Devs.Ven],
|
authors: [Devs.Ven],
|
||||||
|
|
||||||
patches: [{
|
patches: [{
|
||||||
find: 'location:"ChannelTextAreaButtons"',
|
find: '"gift")),(null',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /if\(!\i\.isMobile\)\{(?=.+?&&(\i)\.push\(.{0,50}"gift")/,
|
match: /!\i\.isMobile&&(?=\(\i\.isDM.+?&&(\i)\.push\(.{0,50}"gift")/,
|
||||||
replace: "$&Vencord.Api.ChatButtons._injectButtons($1,arguments[0]);"
|
replace: "$&(Vencord.Api.ChatButtons._injectButtons($1,arguments[0]),!0)&&"
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default definePlugin({
|
||||||
match: /let\{[^}]*lostPermissionTooltipText:\i[^}]*\}=(\i),/,
|
match: /let\{[^}]*lostPermissionTooltipText:\i[^}]*\}=(\i),/,
|
||||||
replace: "$&vencordProps=$1,"
|
replace: "$&vencordProps=$1,"
|
||||||
}, {
|
}, {
|
||||||
match: /decorators:.{0,100}?children:\[/,
|
match: /\.Messages\.GUILD_OWNER(?=.+?decorators:(\i)\(\)).+?\1=?\(\)=>.+?children:\[/,
|
||||||
replace: "$&...(typeof vencordProps=='undefined'?[]:Vencord.Api.MemberListDecorators.__getDecorators(vencordProps)),"
|
replace: "$&...(typeof vencordProps=='undefined'?[]:Vencord.Api.MemberListDecorators.__getDecorators(vencordProps)),"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -195,7 +195,7 @@ export default definePlugin({
|
||||||
|
|
||||||
// Add back "Show My Camera" context menu
|
// Add back "Show My Camera" context menu
|
||||||
{
|
{
|
||||||
find: '.default("MediaEngineWebRTC");',
|
find: '"MediaEngineWebRTC");',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /supports\(\i\)\{switch\(\i\)\{case (\i).Features/,
|
match: /supports\(\i\)\{switch\(\i\)\{case (\i).Features/,
|
||||||
replace: "$&.DISABLE_VIDEO:return true;case $1.Features"
|
replace: "$&.DISABLE_VIDEO:return true;case $1.Features"
|
||||||
|
|
Loading…
Reference in a new issue