mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 11:43:32 -05:00
Fixes Again?
This commit is contained in:
parent
78c0e13fd2
commit
dec2dce2da
1 changed files with 9 additions and 5 deletions
|
@ -64,7 +64,7 @@ export default definePlugin({
|
||||||
replace: "$self.premiumHook($1)||$&"
|
replace: "$self.premiumHook($1)||$&"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /(?<=function \i\((\i)\)\{)(?=var.{30,50},bannerSrc:)/,
|
match: /(?<=function \i\((\i)\)\{)(?=var.+?,bannerSrc:)/,
|
||||||
replace: "$1.bannerSrc=$self.useBannerHook($1);"
|
replace: "$1.bannerSrc=$self.useBannerHook($1);"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -73,19 +73,23 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
...[/profileType:\i,pendingBanner:\i/, /profileType:\i,overrideBannerSrc:\i/].map(find => ({
|
||||||
find: /profileType:\i,overrideBannerSrc:\i/,
|
find,
|
||||||
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)\)\{)(?=var.+?,overrideBannerSrc:)/,
|
||||||
replace: "$1.overrideBannerSrc=$self.useBannerHook($1);"
|
replace: "$1.overrideBannerSrc=$self.useBannerHook($1);"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
match: /(?<=function \i\((\i)\)\{)(?=var.+?,pendingBanner:)/,
|
||||||
|
replace: "$1.pendingBanner=$self.useBannerHook($1);"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
})),
|
||||||
{
|
{
|
||||||
find: "\"data-selenium-video-tile\":",
|
find: "\"data-selenium-video-tile\":",
|
||||||
predicate: () => settings.store.voiceBackground,
|
predicate: () => settings.store.voiceBackground,
|
||||||
|
|
Loading…
Reference in a new issue