From 42d73755806c0905e5e9ca0aacc2d4b56dc54e18 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 21 Nov 2019 20:55:37 +0100 Subject: [PATCH] plugins --- Plugins/CreationDate/CreationDate.plugin.js | 5 +++-- Plugins/EditChannels/EditChannels.plugin.js | 1 - Plugins/JoinedAtDate/JoinedAtDate.plugin.js | 5 +++-- Plugins/LastMessageDate/LastMessageDate.plugin.js | 5 +++-- Plugins/OwnerTag/OwnerTag.plugin.js | 9 +++++---- 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Plugins/CreationDate/CreationDate.plugin.js b/Plugins/CreationDate/CreationDate.plugin.js index d94f031fe3..5432cdd20f 100644 --- a/Plugins/CreationDate/CreationDate.plugin.js +++ b/Plugins/CreationDate/CreationDate.plugin.js @@ -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; }; diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index 6cd5141446..6a4edda22d 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -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); diff --git a/Plugins/JoinedAtDate/JoinedAtDate.plugin.js b/Plugins/JoinedAtDate/JoinedAtDate.plugin.js index 213ab3ae22..3ac17e9378 100644 --- a/Plugins/JoinedAtDate/JoinedAtDate.plugin.js +++ b/Plugins/JoinedAtDate/JoinedAtDate.plugin.js @@ -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; }; diff --git a/Plugins/LastMessageDate/LastMessageDate.plugin.js b/Plugins/LastMessageDate/LastMessageDate.plugin.js index 89bfcd3bca..704163d6ac 100644 --- a/Plugins/LastMessageDate/LastMessageDate.plugin.js +++ b/Plugins/LastMessageDate/LastMessageDate.plugin.js @@ -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; }; diff --git a/Plugins/OwnerTag/OwnerTag.plugin.js b/Plugins/OwnerTag/OwnerTag.plugin.js index 5386447da0..ab366767fb 100644 --- a/Plugins/OwnerTag/OwnerTag.plugin.js +++ b/Plugins/OwnerTag/OwnerTag.plugin.js @@ -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); } }