Fix patches
This commit is contained in:
parent
52a7bdd7aa
commit
be684eea51
4 changed files with 3 additions and 11 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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 })"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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/",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue