Fix patches

This commit is contained in:
thororen1234 2025-10-30 14:39:36 -04:00
parent 52a7bdd7aa
commit be684eea51
No known key found for this signature in database
4 changed files with 3 additions and 11 deletions

View file

@ -63,7 +63,7 @@ export default definePlugin({
]
},
{
find: "clipMethod:\"manual\"",
find: "#{intl::CLIPS_UNKNOWN_SOURCE}",
replacement: {
match: /(applicationName:)(.{0,50})(,applicationId:)(\i)/,
replace: "$1$2$3$self.getApplicationId($2)??$4"

View file

@ -31,7 +31,7 @@ export default definePlugin({
{
find: "#{intl::MESSAGE_FORWARDING_NSFW_NOT_ALLOWED}",
replacement: {
match: /if\(.*?\)(return.{0,25}#{intl::MESSAGE_FORWARDING_NSFW_NOT_ALLOWED})/,
match: /if\(.{0,50}\)(return.{0,25}#{intl::MESSAGE_FORWARDING_NSFW_NOT_ALLOWED})/,
replace: "if(false)$1",
}
},

View file

@ -67,7 +67,7 @@ export default definePlugin({
{
find: ".hasAvatarForGuild(null==",
replacement: {
match: /currentUser:\i,guild:\i\}\)(?=\])/,
match: /currentUser:\i,guild:\i\}\).{0,100}(?=\])/,
replace: "$&,$self.ProfilePopoutComponent({ user: arguments[0].user, displayProfile: arguments[0].displayProfile })"
}
},

View file

@ -94,14 +94,6 @@ export default definePlugin({
replace: "false",
}
},
// Enable option to always record clips even if you are not streaming
{
find: "isDecoupledGameClippingEnabled(){",
replacement: {
match: /\i\.isStaff\(\)/,
replace: "true"
}
},
// Enable experiment embed on sent experiment links
{
find: "dev://experiment/",