parent
bf795c49df
commit
b95c5c6619
2 changed files with 15 additions and 26 deletions
|
@ -4,27 +4,6 @@
|
|||
z-index: -1;
|
||||
}
|
||||
|
||||
[class*="userPopout"] [class*="NonPremium"] [class*="bannerPremium"] {
|
||||
top: -30px;
|
||||
}
|
||||
|
||||
[class*="NonPremium"]:has([class*="bannerPremium"]) [class*="bannerSVGWrapper"] {
|
||||
min-height: 120px !important;
|
||||
}
|
||||
|
||||
[class*="NonPremium"]:has([class*="bannerPremium"]) [class*="bannerSVGWrapper"] foreignObject {
|
||||
height: 360px;
|
||||
}
|
||||
|
||||
[class*="userPopout"] [class*="NonPremium"]:has([class*="bannerPremium"]) [class*="bannerSVGWrapper"] rect {
|
||||
height: 120px;
|
||||
y: -30;
|
||||
}
|
||||
|
||||
[class*="userPopout"] [class*="NonPremium"]:has([class*="bannerPremium"]) [class*="bannerSVGWrapper"] circle {
|
||||
cy: 86;
|
||||
}
|
||||
|
||||
[class*="NonPremium"]:has([class*="bannerPremium"]) [class*="avatarPositionNormal"],
|
||||
[class*="PremiumWithoutBanner"]:has([class*="bannerPremium"]) [class*="avatarPositionPremiumNoBanner"] {
|
||||
top: 76px;
|
||||
|
|
|
@ -46,11 +46,17 @@ export default definePlugin({
|
|||
settings,
|
||||
patches: [
|
||||
{
|
||||
find: ".bannerSrc,",
|
||||
replacement: {
|
||||
find: ".NITRO_BANNER,",
|
||||
replacement: [
|
||||
{
|
||||
match: /(\i)\.premiumType/,
|
||||
replace: "$self.premiumHook($1)||$&"
|
||||
},
|
||||
{
|
||||
match: /(\i)\.bannerSrc,/,
|
||||
replace: "$self.useBannerHook($1),"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
|
@ -65,6 +71,10 @@ export default definePlugin({
|
|||
if (data[user.id]) return data[user.id];
|
||||
},
|
||||
|
||||
premiumHook({ userId }: any) {
|
||||
if (data[userId]) return 2;
|
||||
},
|
||||
|
||||
async start() {
|
||||
enableStyle(style);
|
||||
|
||||
|
|
Loading…
Reference in a new issue