Update some patches

This commit is contained in:
thororen 2026-09-02 10:27:41 -04:00
parent cfeefee162
commit 5288054afc
No known key found for this signature in database
3 changed files with 4 additions and 8 deletions

View file

@ -26,13 +26,9 @@ export default definePlugin({
replace: "true"
},
{
match: /children:\[.{0,80}#{intl::BUILD_OVERRIDE}.{0,15}\{\}\)\]/,
match: /children:\[.{0,60}(?:#{intl::BUILD_OVERRIDE}|#{intl::uyrfYF::raw}).{0,40}\{\}\)\]/g,
replace: "children:$self.makeDevBanner()"
},
{
match: /children:\[.{0,80}#{intl::uyrfYF::raw}.{0,50}\{\}\)\]/,
replace: "children:$self.makeDevBanner()"
},
}
]
}
],

View file

@ -18,7 +18,7 @@ export default definePlugin({
{
find: "#{intl::ADD_FRIEND})}),(",
replacement: {
match: /"header",.{0,30}children:\[.*?\{\}\)/,
match: /#{intl::ADD_FRIEND}.{0,15}\(\i,\{\}\)/,
replace: "$&,$self.FriendCodesPanel"
},
noWarn: true,

View file

@ -64,7 +64,7 @@ export default definePlugin({
all: true,
predicate: () => settings.store.noAppsAllowed,
replacement: {
match: /(#{intl::APP_TAG::hash}":\[").*?("\])/,
match: /(#{intl::APP_TAG::hash}":\[").{0,30}("\])/,
replace: "$1BOT$2",
noWarn: true,
}