diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index d6c645acac..2eb767e3a9 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -16,7 +16,7 @@ module.exports = (_ => { "info": { "name": "BDFDB", "author": "DevilBro", - "version": "1.4.1", + "version": "1.4.0", "description": "Give other plugins utility functions" }, "rawUrl": "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js" @@ -7335,7 +7335,7 @@ module.exports = (_ => { InternalBDFDB.patchedModules = { after: { DiscordTag: "default", - Message: "type", + Message: "default", MessageHeader: "default", MemberListItem: ["componentDidMount", "componentDidUpdate"], PrivateChannel: ["componentDidMount", "componentDidUpdate"], diff --git a/Plugins/ChatFilter/ChatFilter.plugin.js b/Plugins/ChatFilter/ChatFilter.plugin.js index 7fa460c347..44792997b5 100644 --- a/Plugins/ChatFilter/ChatFilter.plugin.js +++ b/Plugins/ChatFilter/ChatFilter.plugin.js @@ -14,8 +14,19 @@ module.exports = (_ => { "info": { "name": "ChatFilter", "author": "DevilBro", - "version": "3.5.2", + "version": "3.5.1", "description": "Allows the user to censor Words or block complete Messages/Statuses" + }, + "changeLog": { + "added": { + "Ignore own Messages/Status": "Added option to ignore your own Messages/Status" + }, + "improved": { + "Zero Width Spaces": "Ignores any zero width space, since some ppl like to troll with it" + }, + "fixed": { + "Settings Update": "Fixed issue where the settings panel wouldn't show new words without having to close it first" + } } }; @@ -84,7 +95,7 @@ module.exports = (_ => { this.patchedModules = { before: { - Message: "type", + Message: "default", MessageContent: "type", UserPopout: "render", UserProfile: "render", diff --git a/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js b/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js index 7ce75306a0..97d6f8c9fa 100644 --- a/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js +++ b/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js @@ -14,8 +14,13 @@ module.exports = (_ => { "info": { "name": "CompleteTimestamps", "author": "DevilBro", - "version": "1.5.3", + "version": "1.5.2", "description": "Replace all timestamps with complete timestamps" + }, + "changeLog": { + "fixed": { + "Mini Stamp Tooltip": "Fixes the issue where tooltips for mini time stamps wouldn't show, smh this is discord's own fault for their shitty css" + } } }; @@ -89,7 +94,7 @@ module.exports = (_ => { this.patchedModules = { after: { - Message: "type", + Message: "default", MessageHeader: "default", MessageContent: "type", Embed: "render", diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index bcbfe0a6a8..05515fa3e5 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -14,8 +14,13 @@ module.exports = (_ => { "info": { "name": "EditUsers", "author": "DevilBro", - "version": "4.1.7", + "version": "4.1.6", "description": "Allow you to change the icon, name, tag and color of users" + }, + "changeLog": { + "fixed": { + "Mentions": "" + } } }; @@ -107,7 +112,7 @@ module.exports = (_ => { NowPlayingHeader: "Header", VoiceUser: "render", Account: "render", - Message: "type", + Message: "default", MessageUsername: "default", MessageContent: "type", ReactorsComponent: "render", diff --git a/Plugins/MessageUtilities/MessageUtilities.plugin.js b/Plugins/MessageUtilities/MessageUtilities.plugin.js index 14f2ea7b13..df1f4581ba 100644 --- a/Plugins/MessageUtilities/MessageUtilities.plugin.js +++ b/Plugins/MessageUtilities/MessageUtilities.plugin.js @@ -14,8 +14,13 @@ module.exports = (_ => { "info": { "name": "MessageUtilities", "author": "DevilBro", - "version": "1.8.8", + "version": "1.8.7", "description": "Offers you a number of useful message options (quick actions)" + }, + "changeLog": { + "fixed": { + "Edit": "Trying to edit a message that is alsready being edited no longer resets the edit" + } } }; @@ -92,10 +97,8 @@ module.exports = (_ => { this.patchedModules = { before: { Menu: "default", + Message: "default", ChannelTextAreaForm: "render" - }, - after: { - Message: "type" } }; @@ -280,14 +283,19 @@ module.exports = (_ => { } processMessage (e) { - if (e.instance.props.message) { - let props = Object.assign({}, e.returnvalue.props); - e.returnvalue.props.onClick = event => { - this.onClick(event, e.instance.props.message); + let message; + for (let key in e.instance.props) { + if (!message) message = BDFDB.ObjectUtils.get(e.instance.props[key], "props.message"); + else break; + } + if (message) { + let props = Object.assign({}, e.instance.props); + e.instance.props.onClick = event => { + this.onClick(event, message); if (typeof props.onClick == "function") props.onClick(event); }; - e.returnvalue.props.onDoubleClick = event => { - this.onClick(event, e.instance.props.message); + e.instance.props.onDoubleClick = event => { + this.onClick(event, message); if (typeof props.onDoubleClick == "function") props.onDoubleClick(event); }; } diff --git a/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js b/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js index 39465a35f6..87cd905573 100644 --- a/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js +++ b/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js @@ -14,8 +14,13 @@ module.exports = (_ => { "info": { "name": "RemoveBlockedMessages", "author": "DevilBro", - "version": "1.2.5", + "version": "1.2.4", "description": "Removes blocked messages/users completely" + }, + "changeLog": { + "fixed": { + "Mentions": "" + } } }; @@ -81,6 +86,7 @@ module.exports = (_ => { this.patchedModules = { before: { + Message: "default", ReactorsComponent: "render", ChannelMembers: "render", PrivateChannelRecipients: "default", @@ -94,7 +100,6 @@ module.exports = (_ => { ChannelPins: "default", RecentMentions: "default", Messages: "type", - Message: "type", Reactions: "render", MemberListItem: "render", VoiceUser: "render", @@ -234,9 +239,9 @@ module.exports = (_ => { processMessage (e) { if (settings.removeReplies) { - let repliedMessage = e.returnvalue.props.childrenRepliedMessage; + let repliedMessage = e.instance.props.childrenRepliedMessage; if (repliedMessage && repliedMessage.props && repliedMessage.props.children && repliedMessage.props.children.props && repliedMessage.props.children.props.referencedMessage && repliedMessage.props.children.props.referencedMessage.message && repliedMessage.props.children.props.referencedMessage.message.author && BDFDB.LibraryModules.FriendUtils.isBlocked(repliedMessage.props.children.props.referencedMessage.message.author.id)) { - delete e.returnvalue.props.childrenRepliedMessage; + delete e.instance.props.childrenRepliedMessage; let header = e.instance.props.childrenHeader; if (header && header.props) { delete header.props.referencedMessage;