plugins
This commit is contained in:
parent
d80539536d
commit
42d7375580
|
@ -3,7 +3,7 @@
|
|||
class CreationDate {
|
||||
getName () {return "CreationDate";}
|
||||
|
||||
getVersion () {return "1.3.3";}
|
||||
getVersion () {return "1.3.4";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -11,6 +11,7 @@ class CreationDate {
|
|||
|
||||
constructor () {
|
||||
this.changelog = {
|
||||
"fixed":[["BetterRoleColors","Fixed now working when BRC is enabled ......"]],
|
||||
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
|
||||
};
|
||||
|
||||
|
@ -234,7 +235,7 @@ class CreationDate {
|
|||
let renderChildren = e.returnvalue.props.children;
|
||||
e.returnvalue.props.children = (...args) => {
|
||||
let renderedChildren = renderChildren(...args);
|
||||
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: "DiscordTag"});
|
||||
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: ["DiscordTag", "ColoredFluxTag"]});
|
||||
if (index > -1) this.injectDate(children, 1, children[index].props.user);
|
||||
return renderedChildren;
|
||||
};
|
||||
|
|
|
@ -236,7 +236,6 @@ class EditChannels {
|
|||
data.name = channelnameinput.value.trim() || null;
|
||||
|
||||
data.color = BDFDB.ColorUtils.getSwatchColor(modal, 1);
|
||||
console.log(data.color);
|
||||
if (data.color != null && !BDFDB.ObjectUtils.is(data.color)) {
|
||||
if (data.color[0] < 30 && data.color[1] < 30 && data.color[2] < 30) data.color = BDFDB.ColorUtils.change(data.color, 30);
|
||||
else if (data.color[0] > 225 && data.color[1] > 225 && data.color[2] > 225) data.color = BDFDB.ColorUtils.change(data.color, -30);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
class JoinedAtDate {
|
||||
getName () {return "JoinedAtDate";}
|
||||
|
||||
getVersion () {return "1.1.6";}
|
||||
getVersion () {return "1.1.7";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -11,6 +11,7 @@ class JoinedAtDate {
|
|||
|
||||
constructor () {
|
||||
this.changelog = {
|
||||
"fixed":[["BetterRoleColors","Fixed now working when BRC is enabled ......"]],
|
||||
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
|
||||
};
|
||||
|
||||
|
@ -236,7 +237,7 @@ class JoinedAtDate {
|
|||
let renderChildren = e.returnvalue.props.children;
|
||||
e.returnvalue.props.children = (...args) => {
|
||||
let renderedChildren = renderChildren(...args);
|
||||
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: "DiscordTag"});
|
||||
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: ["DiscordTag", "ColoredFluxTag"]});
|
||||
if (index > -1) this.injectDate(e.instance, children, 1, children[index].props.user);
|
||||
return renderedChildren;
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
class LastMessageDate {
|
||||
getName () {return "LastMessageDate";}
|
||||
|
||||
getVersion () {return "1.1.0";}
|
||||
getVersion () {return "1.1.1";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -11,6 +11,7 @@ class LastMessageDate {
|
|||
|
||||
constructor () {
|
||||
this.changelog = {
|
||||
"fixed":[["BetterRoleColors","Fixed now working when BRC is enabled ......"]],
|
||||
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
|
||||
};
|
||||
|
||||
|
@ -243,7 +244,7 @@ class LastMessageDate {
|
|||
let renderChildren = e.returnvalue.props.children;
|
||||
e.returnvalue.props.children = (...args) => {
|
||||
let renderedChildren = renderChildren(...args);
|
||||
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: "DiscordTag"});
|
||||
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: ["DiscordTag", "ColoredFluxTag"]});
|
||||
if (index > -1) this.injectDate(e.instance, children, 1, children[index].props.user);
|
||||
return renderedChildren;
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
class OwnerTag {
|
||||
getName () {return "OwnerTag";}
|
||||
|
||||
getVersion () {return "1.2.1";}
|
||||
getVersion () {return "1.2.2";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -11,7 +11,7 @@ class OwnerTag {
|
|||
|
||||
constructor () {
|
||||
this.changelog = {
|
||||
"fixed":[["Chat","Elements now properly get added to the chat again"]],
|
||||
"fixed":[["BetterRoleColors","Fixed now working when BRC is enabled ......"]],
|
||||
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
|
||||
};
|
||||
|
||||
|
@ -31,6 +31,7 @@ class OwnerTag {
|
|||
color: #b3b3b3;
|
||||
}
|
||||
`;
|
||||
|
||||
this.defaults = {
|
||||
settings: {
|
||||
addInChatWindow: {value:true, inner:true, description:"Messages"},
|
||||
|
@ -164,7 +165,7 @@ class OwnerTag {
|
|||
let usertype = this.getUserType(e.instance.props.user);
|
||||
if (usertype && BDFDB.DataUtils.get(this, "settings", "addInUserPopout")) {
|
||||
let nameTag = e.node.querySelector(BDFDB.dotCN.nametag);
|
||||
let tagProps = BDFDB.ReactUtils.findProps(nameTag, {name:"DiscordTag", up:true});
|
||||
let tagProps = BDFDB.ReactUtils.findProps(nameTag, {name:["DiscordTag", "ColoredFluxTag"], up:true});
|
||||
if (nameTag && tagProps) this.appendOwnerTag(nameTag, e.instance.props.user, usertype, ((tagProps.botClass || "") + " " + BDFDB.disCNS.bottagnametag).trim(), tagProps.invertBotTagColor);
|
||||
}
|
||||
}
|
||||
|
@ -173,7 +174,7 @@ class OwnerTag {
|
|||
let usertype = this.getUserType(e.instance.props.user);
|
||||
if (usertype && BDFDB.DataUtils.get(this, "settings", "addInUserProfil")) {
|
||||
let nameTag = e.node.querySelector(BDFDB.dotCN.nametag);
|
||||
let tagProps = BDFDB.ReactUtils.findProps(nameTag, {name:"DiscordTag", up:true});
|
||||
let tagProps = BDFDB.ReactUtils.findProps(nameTag, {name:["DiscordTag", "ColoredFluxTag"], up:true});
|
||||
if (nameTag && tagProps) this.appendOwnerTag(nameTag, e.instance.props.user, usertype, ((tagProps.botClass || "") + " " + BDFDB.disCNS.bottagnametag).trim(), tagProps.invertBotTagColor);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue