stuff
This commit is contained in:
parent
f591355821
commit
0a4931ad53
|
@ -16,7 +16,7 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "BDFDB",
|
"name": "BDFDB",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.4.1",
|
"version": "1.4.0",
|
||||||
"description": "Give other plugins utility functions"
|
"description": "Give other plugins utility functions"
|
||||||
},
|
},
|
||||||
"rawUrl": "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js"
|
"rawUrl": "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js"
|
||||||
|
@ -7335,7 +7335,7 @@ module.exports = (_ => {
|
||||||
InternalBDFDB.patchedModules = {
|
InternalBDFDB.patchedModules = {
|
||||||
after: {
|
after: {
|
||||||
DiscordTag: "default",
|
DiscordTag: "default",
|
||||||
Message: "type",
|
Message: "default",
|
||||||
MessageHeader: "default",
|
MessageHeader: "default",
|
||||||
MemberListItem: ["componentDidMount", "componentDidUpdate"],
|
MemberListItem: ["componentDidMount", "componentDidUpdate"],
|
||||||
PrivateChannel: ["componentDidMount", "componentDidUpdate"],
|
PrivateChannel: ["componentDidMount", "componentDidUpdate"],
|
||||||
|
|
|
@ -14,8 +14,19 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "ChatFilter",
|
"name": "ChatFilter",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "3.5.2",
|
"version": "3.5.1",
|
||||||
"description": "Allows the user to censor Words or block complete Messages/Statuses"
|
"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 = {
|
this.patchedModules = {
|
||||||
before: {
|
before: {
|
||||||
Message: "type",
|
Message: "default",
|
||||||
MessageContent: "type",
|
MessageContent: "type",
|
||||||
UserPopout: "render",
|
UserPopout: "render",
|
||||||
UserProfile: "render",
|
UserProfile: "render",
|
||||||
|
|
|
@ -14,8 +14,13 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "CompleteTimestamps",
|
"name": "CompleteTimestamps",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.5.3",
|
"version": "1.5.2",
|
||||||
"description": "Replace all timestamps with complete timestamps"
|
"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 = {
|
this.patchedModules = {
|
||||||
after: {
|
after: {
|
||||||
Message: "type",
|
Message: "default",
|
||||||
MessageHeader: "default",
|
MessageHeader: "default",
|
||||||
MessageContent: "type",
|
MessageContent: "type",
|
||||||
Embed: "render",
|
Embed: "render",
|
||||||
|
|
|
@ -14,8 +14,13 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "EditUsers",
|
"name": "EditUsers",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "4.1.7",
|
"version": "4.1.6",
|
||||||
"description": "Allow you to change the icon, name, tag and color of users"
|
"description": "Allow you to change the icon, name, tag and color of users"
|
||||||
|
},
|
||||||
|
"changeLog": {
|
||||||
|
"fixed": {
|
||||||
|
"Mentions": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -107,7 +112,7 @@ module.exports = (_ => {
|
||||||
NowPlayingHeader: "Header",
|
NowPlayingHeader: "Header",
|
||||||
VoiceUser: "render",
|
VoiceUser: "render",
|
||||||
Account: "render",
|
Account: "render",
|
||||||
Message: "type",
|
Message: "default",
|
||||||
MessageUsername: "default",
|
MessageUsername: "default",
|
||||||
MessageContent: "type",
|
MessageContent: "type",
|
||||||
ReactorsComponent: "render",
|
ReactorsComponent: "render",
|
||||||
|
|
|
@ -14,8 +14,13 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "MessageUtilities",
|
"name": "MessageUtilities",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.8.8",
|
"version": "1.8.7",
|
||||||
"description": "Offers you a number of useful message options (quick actions)"
|
"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 = {
|
this.patchedModules = {
|
||||||
before: {
|
before: {
|
||||||
Menu: "default",
|
Menu: "default",
|
||||||
|
Message: "default",
|
||||||
ChannelTextAreaForm: "render"
|
ChannelTextAreaForm: "render"
|
||||||
},
|
|
||||||
after: {
|
|
||||||
Message: "type"
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -280,14 +283,19 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
processMessage (e) {
|
processMessage (e) {
|
||||||
if (e.instance.props.message) {
|
let message;
|
||||||
let props = Object.assign({}, e.returnvalue.props);
|
for (let key in e.instance.props) {
|
||||||
e.returnvalue.props.onClick = event => {
|
if (!message) message = BDFDB.ObjectUtils.get(e.instance.props[key], "props.message");
|
||||||
this.onClick(event, e.instance.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);
|
if (typeof props.onClick == "function") props.onClick(event);
|
||||||
};
|
};
|
||||||
e.returnvalue.props.onDoubleClick = event => {
|
e.instance.props.onDoubleClick = event => {
|
||||||
this.onClick(event, e.instance.props.message);
|
this.onClick(event, message);
|
||||||
if (typeof props.onDoubleClick == "function") props.onDoubleClick(event);
|
if (typeof props.onDoubleClick == "function") props.onDoubleClick(event);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,8 +14,13 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "RemoveBlockedMessages",
|
"name": "RemoveBlockedMessages",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.2.5",
|
"version": "1.2.4",
|
||||||
"description": "Removes blocked messages/users completely"
|
"description": "Removes blocked messages/users completely"
|
||||||
|
},
|
||||||
|
"changeLog": {
|
||||||
|
"fixed": {
|
||||||
|
"Mentions": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,6 +86,7 @@ module.exports = (_ => {
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
before: {
|
before: {
|
||||||
|
Message: "default",
|
||||||
ReactorsComponent: "render",
|
ReactorsComponent: "render",
|
||||||
ChannelMembers: "render",
|
ChannelMembers: "render",
|
||||||
PrivateChannelRecipients: "default",
|
PrivateChannelRecipients: "default",
|
||||||
|
@ -94,7 +100,6 @@ module.exports = (_ => {
|
||||||
ChannelPins: "default",
|
ChannelPins: "default",
|
||||||
RecentMentions: "default",
|
RecentMentions: "default",
|
||||||
Messages: "type",
|
Messages: "type",
|
||||||
Message: "type",
|
|
||||||
Reactions: "render",
|
Reactions: "render",
|
||||||
MemberListItem: "render",
|
MemberListItem: "render",
|
||||||
VoiceUser: "render",
|
VoiceUser: "render",
|
||||||
|
@ -234,9 +239,9 @@ module.exports = (_ => {
|
||||||
|
|
||||||
processMessage (e) {
|
processMessage (e) {
|
||||||
if (settings.removeReplies) {
|
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)) {
|
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;
|
let header = e.instance.props.childrenHeader;
|
||||||
if (header && header.props) {
|
if (header && header.props) {
|
||||||
delete header.props.referencedMessage;
|
delete header.props.referencedMessage;
|
||||||
|
|
Loading…
Reference in New Issue