Done For Now

This commit is contained in:
thororen1234 2024-06-06 02:54:52 -04:00
parent dec2dce2da
commit 295a065721
2 changed files with 13 additions and 4 deletions

View file

@ -73,8 +73,8 @@ export default definePlugin({
}
]
},
...[/profileType:\i,pendingBanner:\i/, /profileType:\i,overrideBannerSrc:\i/].map(find => ({
find,
{
find: /profileType:\i,overrideBannerSrc:\i/,
replacement: [
{
match: /(\i)\.premiumType/,
@ -83,13 +83,22 @@ export default definePlugin({
{
match: /(?<=function \i\((\i)\)\{)(?=var.+?,overrideBannerSrc:)/,
replace: "$1.overrideBannerSrc=$self.useBannerHook($1);"
}
]
},
{
find: /profileType:\i,pendingBanner:\i/,
replacement: [
{
match: /(\i)\.premiumType/,
replace: "$self.premiumHook($1)||$&"
},
{
match: /(?<=function \i\((\i)\)\{)(?=var.+?,pendingBanner:)/,
replace: "$1.pendingBanner=$self.useBannerHook($1);"
}
]
})),
},
{
find: "\"data-selenium-video-tile\":",
predicate: () => settings.store.voiceBackground,

View file

@ -192,7 +192,7 @@ export default definePlugin({
}
})),
// Banners
...[".NITRO_BANNER,", /profileType:\i,overrideBannerSrc:\i/].map(find => ({
...[".NITRO_BANNER,", /profileType:\i,overrideBannerSrc:\i/, /profileType:\i,pendingBanner:\i/].map(find => ({
find,
replacement: {
// style: { backgroundImage: shouldShowBanner ? "url(".concat(bannerUrl,