Badge rewrite to check for ID plus script change; constant username>bid (badge ID)

This commit is contained in:
coolesding 2023-09-20 19:30:23 +01:00 committed by GitHub
parent a37cf2ecd5
commit 0faebb9321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 28 deletions

View file

@ -1,21 +1,21 @@
/* AVATAR-TEMPLATE-BEGIN */
/* Custom avatar for {id} */
[style*="avatars/{id}"],
[src*="avatars/{id}"]{
[style^="https://cdn.discordapp.com/avatars/{id}"],
[src^="https://cdn.discordapp.com/avatars/{id}"]{
content: url({img});
background-image: url({img})!important;
}
/* AVATAR-TEMPLATE-END */
/* BADGE-TEMPLATE-BEGIN */
/* Custom badge for {username} */
.header-S26rhB:has([aria-label*="{username}"])>.headerTop-1PNKck>.badgeList-2aoHPw::before,
[aria-label="{username}"]>:first-child>:first-child>.profileBadges-2pItdR::before,
.userInfo-regn9W:has([aria-label*="{username}"])>:nth-child(2)>[role="group"]:before,
.baseLayout-1_9QRm:has([placeholder*="{username}"])>:last-child>:last-child>:last-child>[role="group"]:before{
/* Custom badge for {bid} (bid = badge ID) */
.userPopoutInner-nv9Y92:has(.avatar-31d8He:is([src^="https://cdn.discordapp.com/avatars/{bid}"]))>.topSection-13QKHs>header>.header-S26rhB>.headerTop-1PNKck>.container-1gYwHN:before,
.userPopoutInner-nv9Y92:has(.avatar-31d8He:is([src^="https://cdn.discordapp.com/avatars/{bid}"]))>.container-1gYwHN:before,
.userInfo-regn9W:has([src^="https://cdn.discordapp.com/avatars/{bid}"])>.wrapper-3Un6-K+div>.container-1gYwHN:before,
.userPopoutInner-nv9Y92:has(.imageUploaderInner-IIRaFr:is([style*="{bid}"]))>.container-1gYwHN:before{
content: "";
width: 22px;
height: 22px;
background: url({img}) center / 100% 100%;
}
/* BADGE-TEMPLATE-END */
/* BADGE-TEMPLATE-END */