Revert "stuff"

This reverts commit 616fea4961.
This commit is contained in:
Mirco Wittrien 2023-03-10 13:28:28 +01:00
parent 616fea4961
commit c3c92571a6
2 changed files with 3 additions and 20 deletions

View File

@ -455,7 +455,7 @@
"LazyImageZoomable": {"strings": ["renderLinkComponent", "onCloseImage"]},
"ListItemTooltip": {"strings": [".listItemWrapper", "tooltipClassName", "disableWrapper"]},
"MemberListItem": {"protos": ["renderOwner", "renderDecorators", "renderPremium"]},
"Mention": {"strings": [".iconType", ".color,", "),backgroundColor:"]},
"Mention": {"strings": [".iconType", ".color,", "CHANNEL_BROWSER_TITLE"]},
"Menu": {"strings": ["\"empty\"", "getItemProps", "isUsingKeyboardNavigation"]},
"Message": {"strings": ["childrenMessageContent", "childrenRepliedMessage", "zalgo", ".buttonContainer"]},
"MessageAccessories": {"protos": ["renderGiftCodes", "renderEmbeds", "renderActivityInvite"]},

View File

@ -2,7 +2,7 @@
* @name EditUsers
* @author DevilBro
* @authorId 278543574059057154
* @version 4.7.5
* @version 4.7.4
* @description Allows you to locally edit Users
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -146,7 +146,6 @@ module.exports = (_ => {
"GuildInvitationRow",
"IncomingCallModal",
"MemberListItem",
"Mention",
"MessageContent",
"MessageUsername",
"NameTag",
@ -193,14 +192,6 @@ module.exports = (_ => {
${BDFDB.dotCN.messagemarkup} span[style*="linear-gradient"] ${BDFDB.dotCN.spoilertext} {
color: var(--text-normal);
}
${BDFDB.dotCN.mention}[style*="--edited-mention-color"] {
background-color: rgba(var(--edited-mention-color), .1) !important;
color: rgb(var(--edited-mention-color)) !important;
}
${BDFDB.dotCN.mention + BDFDB.dotCN.mentioninteractive}[style*="--edited-mention-color"]:hover {
background-color: rgba(var(--edited-mention-color), .3) !important;
color: rgb(var(--edited-mention-color)) !important;
}
`;
}
@ -914,17 +905,9 @@ module.exports = (_ => {
}
if (data.color1) {
mention.props.color = BDFDB.ColorUtils.convert(BDFDB.ObjectUtils.is(data.color1) ? data.color1[0] : data.color1, "INT");
mention.props["edited-mention-color"] = BDFDB.ColorUtils.convert(BDFDB.ObjectUtils.is(data.color1) ? data.color1[0] : data.color1, "RGBCOMP").slice(0, 3).join(",");
if (mention.props.children && mention.props.children.props) {
mention.props.children.props.color = mention.props.color;
mention.props.children.props["edited-mention-color"] = BDFDB.ColorUtils.convert(BDFDB.ObjectUtils.is(data.color1) ? data.color1[0] : data.color1, "RGBCOMP").slice(0, 3).join(",");
}
if (mention.props.children && mention.props.children.props) mention.props.children.props.color = mention.props.color;
}
}
processMention (e) {
if (e.instance.props["edited-mention-color"]) e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {"--edited-mention-color": e.instance.props["edited-mention-color"]});
}
processChannelReply (e) {
if (!this.settings.places.chatWindow || !e.instance.props.reply || !e.instance.props.reply.message || !this.shouldChangeInChat(e.instance.props.reply.message.channel_id)) return;