mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Done For Now
This commit is contained in:
parent
dec2dce2da
commit
295a065721
2 changed files with 13 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue