USRBG: fix in simplified profile (#2549)

This commit is contained in:
AutumnVN 2024-06-06 10:07:20 +07:00 committed by GitHub
parent 5976d52cbc
commit 0b611a2911
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,15 +74,15 @@ export default definePlugin({
]
},
{
find: /overrideBannerSrc:\i,profileType:/,
find: /overrideBannerSrc:\i,overrideBannerWidth:/,
replacement: [
{
match: /(\i)\.premiumType/,
replace: "$self.premiumHook($1)||$&"
},
{
match: /(?<=function \i\((\i)\)\{)(?=var.{30,50},overrideBannerSrc:)/,
replace: "$1.overrideBannerSrc=$self.useBannerHook($1);"
match: /function \i\((\i)\)\{/,
replace: "$&$1.overrideBannerSrc=$self.useBannerHook($1);"
}
]
},