From 43a27d43f46c7279e6ed812992df3440b8873a69 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 25 Oct 2022 17:22:33 +0200 Subject: [PATCH] plugins --- Plugins/ChatAliases/ChatAliases.plugin.js | 4 ++-- Plugins/EditUsers/EditUsers.plugin.js | 2 +- Plugins/PinDMs/PinDMs.plugin.js | 2 +- Plugins/RevealAllSpoilers/RevealAllSpoilers.plugin.js | 2 +- Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js | 5 ++--- Plugins/Translator/Translator.plugin.js | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Plugins/ChatAliases/ChatAliases.plugin.js b/Plugins/ChatAliases/ChatAliases.plugin.js index 3275be7062..f9fdfd06e0 100644 --- a/Plugins/ChatAliases/ChatAliases.plugin.js +++ b/Plugins/ChatAliases/ChatAliases.plugin.js @@ -395,7 +395,7 @@ module.exports = (_ => { BDFDB.ReactUtils.forceUpdate(e.instance); } } - }}, {force: true, noCache: true}); + }}, {noCache: true}); } processMessageEditor (e) { @@ -412,7 +412,7 @@ module.exports = (_ => { } BDFDB.ReactUtils.forceUpdate(e.instance); } - }}, {force: true, noCache: true}); + }}, {noCache: true}); } formatText (text) { diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 791b4bf87c..fb34909244 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -1072,7 +1072,7 @@ module.exports = (_ => { } let avatar = BDFDB.ReactUtils.findChild(e2.returnValue, {props: [["className", BDFDB.disCN.auditlogpopoutavatar]]}); if (avatar) avatar.props.src = this.getUserAvatar(e2.methodArguments[0].user.id); - }}}, {force: true, noCache: true}); + }}}, {noCache: true}); } } diff --git a/Plugins/PinDMs/PinDMs.plugin.js b/Plugins/PinDMs/PinDMs.plugin.js index c841b15315..08865101c4 100644 --- a/Plugins/PinDMs/PinDMs.plugin.js +++ b/Plugins/PinDMs/PinDMs.plugin.js @@ -414,7 +414,7 @@ module.exports = (_ => { ].filter(n => n); } } - }}, {force: true, noCache: true}); + }}, {noCache: true}); } } diff --git a/Plugins/RevealAllSpoilers/RevealAllSpoilers.plugin.js b/Plugins/RevealAllSpoilers/RevealAllSpoilers.plugin.js index ff12ce319b..cffb0f6a34 100644 --- a/Plugins/RevealAllSpoilers/RevealAllSpoilers.plugin.js +++ b/Plugins/RevealAllSpoilers/RevealAllSpoilers.plugin.js @@ -80,7 +80,7 @@ module.exports = (_ => { let parent = BDFDB.DOMUtils.getParent(e2.methodArguments[0].shiftKey ? BDFDB.dotCN.messageswrapper : BDFDB.dotCN.message, e2.methodArguments[0].target) || e2.methodArguments[0].target.parentElement; if (parent) for (let spoiler of parent.querySelectorAll(BDFDB.dotCN.spoilerhidden)) if (!BDFDB.DOMUtils.getParent(BDFDB.dotCN.messagerepliedmessagepreview, spoiler)) spoiler.click(); } - }}, {force: true, noCache: true}); + }}, {noCache: true}); } }; })(window.BDFDB_Global.PluginUtils.buildPlugin(changeLog)); diff --git a/Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js b/Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js index 51ffff2fe4..4b894b9bf2 100644 --- a/Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js +++ b/Plugins/SplitLargeMessages/SplitLargeMessages.plugin.js @@ -2,7 +2,7 @@ * @name SplitLargeMessages * @author DevilBro * @authorId 278543574059057154 - * @version 1.7.8 + * @version 1.7.9 * @description Allows you to enter larger Messages, which will automatically split into several smaller Messages * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -130,7 +130,6 @@ module.exports = (_ => { if (e.instance.props.type != BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL && e.instance.props.type != BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL_WITH_ACTIVITY && e.instance.props.type != BDFDB.LibraryComponents.ChannelTextAreaTypes.SIDEBAR) return; if (!e.returnvalue) { BDFDB.PatchUtils.patch(this, e.instance.props, "onSubmit", {instead: e2 => { - console.log(e2); if (e2.methodArguments[0].value.length > maxMessageLength && !this.isSlowDowned(e.instance.props.channel)) { e2.stopOriginalMethodCall(); let messages = this.formatText(e2.methodArguments[0].value).filter(n => n); @@ -145,7 +144,7 @@ module.exports = (_ => { }); } else return e2.callOriginalMethodAfterwards(); - }}); + }}, {noCache: true}); } else { let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "ChannelTextAreaCounter"}); diff --git a/Plugins/Translator/Translator.plugin.js b/Plugins/Translator/Translator.plugin.js index 0b0d6339d0..11398e39a4 100644 --- a/Plugins/Translator/Translator.plugin.js +++ b/Plugins/Translator/Translator.plugin.js @@ -667,7 +667,7 @@ module.exports = (_ => { }); } return e2.callOriginalMethodAfterwards(); - }}, {force: true, noCache: true}); + }}, {noCache: true}); } processChannelTextAreaEditor (e) {