This commit is contained in:
Mirco Wittrien 2021-04-27 13:10:56 +02:00
parent d5f9e9a124
commit 153fd0a6ea
4 changed files with 17 additions and 26 deletions

View File

@ -7758,7 +7758,6 @@ module.exports = (_ => {
let newProps = {
className: className,
style: {borderRadius: 0, overflow: "visible"},
"custom-badge-id": customBadge ? user.id : null,
children: [avatar]
};
newProps[InternalData.userIdAttribute] = user.id;
@ -7790,7 +7789,6 @@ module.exports = (_ => {
}
if (role && !avatar.querySelector(BDFDB.dotCN.bdfdbbadge)) {
if (addBadge) {
if (customBadge) avatar.setAttribute("custom-badge-id", user.id);
let badge = document.createElement("div");
badge.className = BDFDB.disCN.bdfdbbadge;
badge.addEventListener("mouseenter", _ => BDFDB.TooltipUtils.create(badge, role, {position: "top"}));

View File

@ -4679,7 +4679,7 @@
}
},
"BDFDB_Patrons": {
"455384923034091541": {"active": true, "t3": false, "custom": true, "text": "Allmächtig", "id": "EXITIUM"},
"455384923034091541": {"active": true, "t3": true, "custom": true, "text": "Allmächtig", "id": "EXITIUM"},
"89482511343702016": {"active": true, "t3": false, "custom": false, "text": "", "id": "AzukiPuddles"},
"341383936984875020": {"active": true, "t3": true, "custom": false, "text": "", "id": "dannycoch (DaCo)"},
"811756093730586635": {"active": false, "t3": true, "custom": false, "text": "", "id": "Namii (RiDeLo)"},

View File

@ -1,35 +1,28 @@
.supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .mask-1l8v16 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.7 v -0.353 h -0.3 z"/></g></svg>') center/cover no-repeat;
.supporter-Z3FfwL.hasBadge-4rT8_u .mask-1l8v16 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><path fill="white" d="M0 0 h 1 v 1 h -0.7 v -0.353 h -0.3 z"/></svg>') center/cover no-repeat;
}
.supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .avatarHint-1qgaV3 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.66 v -0.33 h -0.33 z"/></g></svg>');
.supporter-Z3FfwL.hasBadge-4rT8_u .avatarHint-1qgaV3 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><path fill="white" d="M0 0 h 1 v 1 h -0.66 v -0.33 h -0.33 z"/></svg>');
}
.supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .badge-7R_W3s {
.supporter-Z3FfwL.hasBadge-4rT8_u .badge-7R_W3s {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 508.52 508.52"><path fill="black" d="M63.565, 476.737c0, 12.84, 7.755, 24.473, 19.61, 29.367c3.941, 1.621, 8.073, 2.415, 12.173, 2.415c8.263, 0, 16.4-3.242, 22.47-9.312L254.26, 362.765l136.442, 136.442c6.07, 6.07, 14.207, 9.312, 22.47, 9.312c4.1, 0, 8.232-0.795, 12.141-2.415c11.887-4.894, 19.642-16.527, 19.642-29.367V165.347H63.565V476.737z"/><path fill="black" d="M413.172, 0H95.347C77.804, 0, 63.565, 14.239, 63.565, 31.782v61.782h381.39V31.782C444.955, 14.239, 430.716, 0, 413.172, 0z"/></svg>') center/cover no-repeat !important;
background: #F96854 !important;
position: absolute !important;
width: 30% !important;
height: 30% !important;
top: 74% !important;
left: 1.5% !important;
width: 30% !important;
height: 30% !important;
}
.root-SR8cQa .topSectionPlaying-1J5E4n .supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .badge-7R_W3s,
.userPopout-3XzG_A .headerPlaying-j0WQBV .supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .badge-7R_W3s {
filter: brightness(80%) !important;
}
/* BEAUDEN */
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custombadge_id="562008872467038230"] .mask-1l8v16 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.6 v -0.33 h -0.4 z"/></g></svg>') center/cover no-repeat;
}
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custombadge_id="562008872467038230"] .avatarHint-1qgaV3 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.54 v -0.3 h -0.46 z"/></g></svg>');
}
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custombadge_id="562008872467038230"] .badge-7R_W3s {
background: url(https://mwittrien.github.io/BetterDiscordAddons/Themes/_res/T3Badges/562008872467038230.png) center/cover no-repeat !important;
position: absolute !important;
width: 50% !important;
height: calc(420/800 * 50%) !important;
top: 75% !important;
left: -10% !important;
/* EXITIUM */
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[data-user-id="455384923034091541"] .badge-7R_W3s {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16"><path fill="white" d="M13.6572 5.42868C13.8879 5.29002 14.1806 5.30402 14.3973 5.46468C14.6133 5.62602 14.7119 5.90068 14.6473 6.16202L13.3139 11.4954C13.2393 11.7927 12.9726 12.0007 12.6666 12.0007H3.33325C3.02725 12.0007 2.76058 11.792 2.68592 11.4954L1.35258 6.16202C1.28792 5.90068 1.38658 5.62602 1.60258 5.46468C1.81992 5.30468 2.11192 5.29068 2.34325 5.42868L5.13192 7.10202L7.44592 3.63068C7.46173 3.60697 7.48377 3.5913 7.50588 3.57559C7.5192 3.56612 7.53255 3.55663 7.54458 3.54535L6.90258 2.90268C6.77325 2.77335 6.77325 2.56068 6.90258 2.43135L7.76458 1.56935C7.89392 1.44002 8.10658 1.44002 8.23592 1.56935L9.09792 2.43135C9.22725 2.56068 9.22725 2.77335 9.09792 2.90268L8.45592 3.54535C8.46794 3.55686 8.48154 3.56651 8.49516 3.57618C8.51703 3.5917 8.53897 3.60727 8.55458 3.63068L10.8686 7.10202L13.6572 5.42868ZM2.66667 12.6673H13.3333V14.0007H2.66667V12.6673Z"/></svg>') center/cover no-repeat !important;
top: 69% !important;
left: -0.5% !important;
width: 32% !important;
height: 32% !important;
}

View File

@ -1,8 +1,8 @@
.dev-A7f2Rx.hasBadge-4rT8_u .mask-1l8v16 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.7 v -0.353 h -0.3 z"/></g></svg>') center/cover no-repeat;
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><path fill="white" d="M0 0 h 1 v 1 h -0.7 v -0.353 h -0.3 z"/></svg>') center/cover no-repeat;
}
.dev-A7f2Rx.hasBadge-4rT8_u .avatarHint-1qgaV3 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.66 v -0.33 h -0.33 z"/></g></svg>');
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><path fill="white" d="M0 0 h 1 v 1 h -0.66 v -0.33 h -0.33 z"/></svg>');
}
.dev-A7f2Rx.hasBadge-4rT8_u .badge-7R_W3s {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 508.52 508.52"><path fill="black" d="M63.565, 476.737c0, 12.84, 7.755, 24.473, 19.61, 29.367c3.941, 1.621, 8.073, 2.415, 12.173, 2.415c8.263, 0, 16.4-3.242, 22.47-9.312L254.26, 362.765l136.442, 136.442c6.07, 6.07, 14.207, 9.312, 22.47, 9.312c4.1, 0, 8.232-0.795, 12.141-2.415c11.887-4.894, 19.642-16.527, 19.642-29.367V165.347H63.565V476.737z"/><path fill="black" d="M413.172, 0H95.347C77.804, 0, 63.565, 14.239, 63.565, 31.782v61.782h381.39V31.782C444.955, 14.239, 430.716, 0, 413.172, 0z"/></svg>') center/cover no-repeat !important;