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