mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-19 05:43: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: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /(\i)\.premiumType/,
|
match: /(\i)\.premiumType/,
|
||||||
|
@ -83,13 +83,22 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
match: /(?<=function \i\((\i)\)\{)(?=var.+?,overrideBannerSrc:)/,
|
match: /(?<=function \i\((\i)\)\{)(?=var.+?,overrideBannerSrc:)/,
|
||||||
replace: "$1.overrideBannerSrc=$self.useBannerHook($1);"
|
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:)/,
|
match: /(?<=function \i\((\i)\)\{)(?=var.+?,pendingBanner:)/,
|
||||||
replace: "$1.pendingBanner=$self.useBannerHook($1);"
|
replace: "$1.pendingBanner=$self.useBannerHook($1);"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})),
|
},
|
||||||
{
|
{
|
||||||
find: "\"data-selenium-video-tile\":",
|
find: "\"data-selenium-video-tile\":",
|
||||||
predicate: () => settings.store.voiceBackground,
|
predicate: () => settings.store.voiceBackground,
|
||||||
|
|
|
@ -192,7 +192,7 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
})),
|
})),
|
||||||
// Banners
|
// Banners
|
||||||
...[".NITRO_BANNER,", /profileType:\i,overrideBannerSrc:\i/].map(find => ({
|
...[".NITRO_BANNER,", /profileType:\i,overrideBannerSrc:\i/, /profileType:\i,pendingBanner:\i/].map(find => ({
|
||||||
find,
|
find,
|
||||||
replacement: {
|
replacement: {
|
||||||
// style: { backgroundImage: shouldShowBanner ? "url(".concat(bannerUrl,
|
// style: { backgroundImage: shouldShowBanner ? "url(".concat(bannerUrl,
|
||||||
|
|
Loading…
Reference in a new issue