fixes
This commit is contained in:
parent
8db16bab15
commit
f54b348c51
|
@ -3,7 +3,7 @@
|
||||||
class BadgesEverywhere {
|
class BadgesEverywhere {
|
||||||
getName () {return "BadgesEverywhere";}
|
getName () {return "BadgesEverywhere";}
|
||||||
|
|
||||||
getVersion () {return "1.3.4";}
|
getVersion () {return "1.3.5";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -11,12 +11,13 @@ class BadgesEverywhere {
|
||||||
|
|
||||||
initConstructor () {
|
initConstructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"fixed":[["Showing at the bottom","Badges are now properlly at the bottom even when a custom status is set"]]
|
"fixed":[["New Structure","Fixed issues that will occur once the avatar/name changes from canary will hit stable/ptb"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchModules = {
|
this.patchModules = {
|
||||||
"NameTag":"componentDidMount",
|
"ChannelMember":"componentDidMount",
|
||||||
"MessageUsername":"componentDidMount",
|
"MessageUsername":"componentDidMount",
|
||||||
|
"UserPopout":"componentDidMount",
|
||||||
"StandardSidebarView":"componentWillUnmount"
|
"StandardSidebarView":"componentWillUnmount"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -229,14 +230,8 @@ class BadgesEverywhere {
|
||||||
|
|
||||||
// begin of own functions
|
// begin of own functions
|
||||||
|
|
||||||
processNameTag (instance, wrapper) {
|
processChannelMember (instance, wrapper) {
|
||||||
if (!wrapper.classList || !instance || !instance.props) return;
|
if (instance.props && BDFDB.getData("showInMemberList", this, "settings")) this.addBadges(instance.props.user, wrapper.querySelector(BDFDB.dotCN.nametag), "list");
|
||||||
else if (BDFDB.containsClass(wrapper, BDFDB.disCN.membernametag) && BDFDB.getData("showInMemberList", this, "settings")) {
|
|
||||||
this.addBadges(instance.props.user, wrapper, "list");
|
|
||||||
}
|
|
||||||
else if (BDFDB.containsClass(wrapper, BDFDB.disCN.userpopoutheadertag) && BDFDB.getData("showInPopout", this, "settings")) {
|
|
||||||
this.addBadges(instance.props.user, BDFDB.getParentEle(BDFDB.dotCN.userpopoutheadertext, wrapper), "popout");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
processMessageUsername (instance, wrapper) {
|
processMessageUsername (instance, wrapper) {
|
||||||
|
@ -247,6 +242,10 @@ class BadgesEverywhere {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processUserPopout (instance, wrapper) {
|
||||||
|
if (instance.props && BDFDB.getData("showInPopout", this, "settings")) this.addBadges(instance.props.user, wrapper.querySelector(BDFDB.dotCN.userpopoutheadertext), "popout");
|
||||||
|
}
|
||||||
|
|
||||||
processStandardSidebarView (instance, wrapper) {
|
processStandardSidebarView (instance, wrapper) {
|
||||||
if (this.SettingsUpdated) {
|
if (this.SettingsUpdated) {
|
||||||
delete this.SettingsUpdated;
|
delete this.SettingsUpdated;
|
||||||
|
|
|
@ -11,7 +11,7 @@ class BetterFriendCount {
|
||||||
|
|
||||||
initConstructor () {
|
initConstructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"fixed":[["New Structure","Fixed issues that will occure once the avatar/name changes from canary will hit stable/ptb"]]
|
"fixed":[["New Structure","Fixed issues that will occur once the avatar/name changes from canary will hit stable/ptb"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchModules = {
|
this.patchModules = {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class OwnerTag {
|
class OwnerTag {
|
||||||
getName () {return "OwnerTag";}
|
getName () {return "OwnerTag";}
|
||||||
|
|
||||||
getVersion () {return "1.1.3";}
|
getVersion () {return "1.1.4";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -11,12 +11,14 @@ class OwnerTag {
|
||||||
|
|
||||||
initConstructor () {
|
initConstructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"improved":[["Crown","Changed the crown to the new crown icon"]]
|
"fixed":[["New Structure","Fixed issues that will occur once the avatar/name changes from canary will hit stable/ptb"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchModules = {
|
this.patchModules = {
|
||||||
"NameTag":["componentDidMount","componentDidUpdate"],
|
"ChannelMember":["componentDidMount","componentDidUpdate"],
|
||||||
"MessageUsername":["componentDidMount","componentDidUpdate"],
|
"MessageUsername":["componentDidMount","componentDidUpdate"],
|
||||||
|
"UserPopout":["componentDidMount","componentDidUpdate"],
|
||||||
|
"UserProfile":["componentDidMount","componentDidUpdate"],
|
||||||
"StandardSidebarView":"componentWillUnmount"
|
"StandardSidebarView":"componentWillUnmount"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -142,18 +144,16 @@ class OwnerTag {
|
||||||
this.SettingsUpdated = true;
|
this.SettingsUpdated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
processNameTag (instance, wrapper) {
|
processChannelMember (instance, wrapper) {
|
||||||
let container = null;
|
if (instance.props && BDFDB.getData("addInMemberList", this, "settings")) this.addOwnerTag(instance.props.user, null, wrapper.querySelector(BDFDB.dotCN.nametag), "list", BDFDB.disCN.bottagnametag, null);
|
||||||
if (!instance.props || !wrapper.classList) return;
|
|
||||||
else if (BDFDB.containsClass(wrapper, BDFDB.disCN.membernametag) && BDFDB.getData("addInMemberList", this, "settings")) {
|
|
||||||
this.addOwnerTag(instance.props.user, null, wrapper, "list", BDFDB.disCN.bottagnametag + (instance.props.botClass ? (" " + instance.props.botClass) : ""), container);
|
|
||||||
}
|
}
|
||||||
else if ((container = BDFDB.getParentEle(BDFDB.dotCN.userpopout, wrapper)) != null && BDFDB.getData("addInUserPopout", this, "settings")) {
|
|
||||||
this.addOwnerTag(instance.props.user, null, wrapper, "popout", BDFDB.disCN.bottagnametag + (instance.props.botClass ? (" " + instance.props.botClass) : ""), container);
|
processUserPopout (instance, wrapper) {
|
||||||
}
|
if (instance.props && BDFDB.getData("addInUserPopout", this, "settings")) this.addOwnerTag(instance.props.user, null, wrapper.querySelector(BDFDB.dotCN.nametag), "popout", BDFDB.disCN.bottagnametag, wrapper);
|
||||||
else if ((container = BDFDB.getParentEle(BDFDB.dotCN.userprofile, wrapper)) != null && BDFDB.getData("addInUserProfil", this, "settings")) {
|
|
||||||
this.addOwnerTag(instance.props.user, null, wrapper, "profile", BDFDB.disCN.bottagnametag + (instance.props.botClass ? (" " + instance.props.botClass) : ""), container);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processUserProfile (instance, wrapper) {
|
||||||
|
if (instance.props && BDFDB.getData("addInUserProfil", this, "settings")) this.addOwnerTag(instance.props.user, null, wrapper.querySelector(BDFDB.dotCN.nametag), "profile", BDFDB.disCN.bottagnametag, wrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
processMessageUsername (instance, wrapper, methodnames) {
|
processMessageUsername (instance, wrapper, methodnames) {
|
||||||
|
@ -162,7 +162,7 @@ class OwnerTag {
|
||||||
let username = wrapper.querySelector(BDFDB.dotCN.messageusername);
|
let username = wrapper.querySelector(BDFDB.dotCN.messageusername);
|
||||||
if (username) {
|
if (username) {
|
||||||
let messagegroup = BDFDB.getParentEle(BDFDB.dotCN.messagegroup, wrapper);
|
let messagegroup = BDFDB.getParentEle(BDFDB.dotCN.messagegroup, wrapper);
|
||||||
this.addOwnerTag(message.author, message.channel_id, username.parentElement, "chat", BDFDB.disCN.bottagmessage + " " + (BDFDB.containsClass(messagegroup, BDFDB.disCN.messagegroupcozy) ? BDFDB.disCN.bottagmessagecozy : BDFDB.disCN.bottagmessagecompact), null);
|
this.addOwnerTag(message.author, message.channel_id, username.parentElement, "chat", BDFDB.containsClass(messagegroup, BDFDB.disCN.messagegroupcozy) ? BDFDB.disCN.bottagmessagecozy : BDFDB.disCN.bottagmessagecompact, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class RemoveNicknames {
|
class RemoveNicknames {
|
||||||
getName () {return "RemoveNicknames";}
|
getName () {return "RemoveNicknames";}
|
||||||
|
|
||||||
getVersion () {return "1.2.2";}
|
getVersion () {return "1.2.3";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -11,13 +11,13 @@ class RemoveNicknames {
|
||||||
|
|
||||||
initConstructor () {
|
initConstructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"improved":[["Normalized Classes","Normalized Classes no longer make the plugin be rendered useless in the member list"]]
|
"fixed":[["New Structure","Fixed issues that will occur once the avatar/name changes from canary will hit stable/ptb"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchModules = {
|
this.patchModules = {
|
||||||
"NameTag":"componentDidMount",
|
"ChannelMember":"componentDidMount",
|
||||||
"TypingUsers":"componentDidUpdate",
|
|
||||||
"MessageUsername":"componentDidMount",
|
"MessageUsername":"componentDidMount",
|
||||||
|
"TypingUsers":"componentDidUpdate",
|
||||||
"Clickable":"componentDidMount",
|
"Clickable":"componentDidMount",
|
||||||
"StandardSidebarView":"componentWillUnmount"
|
"StandardSidebarView":"componentWillUnmount"
|
||||||
};
|
};
|
||||||
|
@ -126,10 +126,11 @@ class RemoveNicknames {
|
||||||
return settings.addNickname ? (settings.swapPositions ? (member.nick + " (" + username + ")") : (username + " (" + member.nick + ")")) : username;
|
return settings.addNickname ? (settings.swapPositions ? (member.nick + " (" + username + ")") : (username + " (" + member.nick + ")")) : username;
|
||||||
}
|
}
|
||||||
|
|
||||||
processNameTag (instance, wrapper) {
|
processChannelMember (instance, wrapper) {
|
||||||
if (wrapper && !BDFDB.getParentEle(BDFDB.dotCNC.userprofile + BDFDB.dotCN.userpopout, wrapper)) {
|
let user = BDFDB.getReactValue(instance, "props.user");
|
||||||
let username = wrapper.parentElement.querySelector("." + instance.props.usernameClass.replace(/ /g, "."));
|
if (user) {
|
||||||
if (username) BDFDB.setInnerText(username, this.getNewName(instance.props.user));
|
let username = wrapper.querySelector(BDFDB.dotCN.memberusername);
|
||||||
|
if (username) BDFDB.setInnerText(username, this.getNewName(user));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,15 +3,19 @@
|
||||||
class TopRoleEverywhere {
|
class TopRoleEverywhere {
|
||||||
getName () {return "TopRoleEverywhere";}
|
getName () {return "TopRoleEverywhere";}
|
||||||
|
|
||||||
getVersion () {return "2.7.9";}
|
getVersion () {return "2.8.0";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
getDescription () {return "Adds the highest role of a user as a tag.";}
|
getDescription () {return "Adds the highest role of a user as a tag.";}
|
||||||
|
|
||||||
initConstructor () {
|
initConstructor () {
|
||||||
|
this.changelog = {
|
||||||
|
"fixed":[["New Structure","Fixed issues that will occur once the avatar/name changes from canary will hit stable/ptb"]]
|
||||||
|
};
|
||||||
|
|
||||||
this.patchModules = {
|
this.patchModules = {
|
||||||
"NameTag":"componentDidMount",
|
"ChannelMember":"componentDidMount",
|
||||||
"MessageUsername":"componentDidMount",
|
"MessageUsername":"componentDidMount",
|
||||||
"StandardSidebarView":"componentWillUnmount"
|
"StandardSidebarView":"componentWillUnmount"
|
||||||
};
|
};
|
||||||
|
@ -132,8 +136,8 @@ class TopRoleEverywhere {
|
||||||
|
|
||||||
// begin of own functions
|
// begin of own functions
|
||||||
|
|
||||||
processNameTag (instance, wrapper) {
|
processChannelMember (instance, wrapper) {
|
||||||
if (instance.props && BDFDB.containsClass(wrapper, BDFDB.disCN.membernametag) && BDFDB.getData("showInMemberList", this, "settings")) {
|
if (instance.props && BDFDB.getData("showInMemberList", this, "settings")) {
|
||||||
this.addRoleTag(instance.props.user, wrapper.querySelector(BDFDB.dotCN.memberusername), "list");
|
this.addRoleTag(instance.props.user, wrapper.querySelector(BDFDB.dotCN.memberusername), "list");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue