stuff
This commit is contained in:
parent
ad2a55c086
commit
5e41ba64c6
|
@ -395,6 +395,7 @@
|
||||||
"PrivateChannel": {"strings": ["LEAVE_GROUP_DM_MANAGED_BODY", "handleCloseButtonMouseDown", "handleLeaveGroup"]},
|
"PrivateChannel": {"strings": ["LEAVE_GROUP_DM_MANAGED_BODY", "handleCloseButtonMouseDown", "handleLeaveGroup"]},
|
||||||
"PrivateChannelRecipients": {"strings": [".membersWrap", "recipients"]},
|
"PrivateChannelRecipients": {"strings": [".membersWrap", "recipients"]},
|
||||||
"PrivateChannelsList": {"strings": ["privateChannelIds", "privateChannelRecipientsInviteButtonIcon"]},
|
"PrivateChannelsList": {"strings": ["privateChannelIds", "privateChannelRecipientsInviteButtonIcon"]},
|
||||||
|
"QuickMessage": {"strings": ["QUICK_DM_USER", ".NORMAL"]},
|
||||||
"Reactions": {"strings": ["disableTransitionAppear", "reactionsCount:", "message.reactions.length"]},
|
"Reactions": {"strings": ["disableTransitionAppear", "reactionsCount:", "message.reactions.length"]},
|
||||||
"Reactor": {"strings": ["currentUser cannot be undefined", "reactorDefault"]},
|
"Reactor": {"strings": ["currentUser cannot be undefined", "reactorDefault"]},
|
||||||
"ReactorsComponent": {"strings": ["hasMore", "emoji", "spinnerMore"]},
|
"ReactorsComponent": {"strings": ["hasMore", "emoji", "spinnerMore"]},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name WriteUpperCase
|
* @name WriteUpperCase
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.3.6
|
* @version 1.3.7
|
||||||
* @description Changes the first Letter of each Sentence in Message Inputs to Uppercase
|
* @description Changes the first Letter of each Sentence in Message Inputs to Uppercase
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -16,7 +16,7 @@ module.exports = (_ => {
|
||||||
const changeLog = {
|
const changeLog = {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||||
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
constructor (meta) {for (let key in meta) this[key] = meta[key];}
|
||||||
getName () {return this.name;}
|
getName () {return this.name;}
|
||||||
|
@ -96,14 +96,14 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.modulePatches = {
|
||||||
before: {
|
before: [
|
||||||
ChannelEditorContainer: "render"
|
"ChannelTextAreaEditor"
|
||||||
},
|
],
|
||||||
after: {
|
after: [
|
||||||
ChannelTextAreaButtons: "type",
|
"ChannelTextAreaButtons",
|
||||||
QuickMessage: "default"
|
"QuickMessage"
|
||||||
}
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.css = `
|
this.css = `
|
||||||
|
@ -158,14 +158,10 @@ module.exports = (_ => {
|
||||||
BDFDB.PatchUtils.forceAllUpdates(this);
|
BDFDB.PatchUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
forceUpdateAll () {
|
|
||||||
BDFDB.PatchUtils.forceAllUpdates(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
processChannelEditorContainer (e) {
|
processChannelTextAreaEditor (e) {
|
||||||
let type = e.instance.props.type.analyticsName || e.instance.props.type || "";
|
let type = e.instance.props.type.analyticsName || e.instance.props.type || "";
|
||||||
if (e.instance.props.textValue && e.instance.state.focused && (!type || this.settings.places[type] || !this.defaults.places[type]) && (!this.settings.general.addQuickToggle || channelBlacklist.indexOf(e.instance.props.channel.id) == -1)) {
|
if (e.instance.props.textValue && e.instance.props.focused && (!type || this.settings.places[type] || !this.defaults.places[type]) && (!this.settings.general.addQuickToggle || channelBlacklist.indexOf(e.instance.props.channel.id) == -1)) {
|
||||||
let string = e.instance.props.textValue;
|
let string = e.instance.props.textValue;
|
||||||
let newString = this.parse(string);
|
let newString = this.parse(string);
|
||||||
if (string != newString) {
|
if (string != newString) {
|
||||||
|
|
Loading…
Reference in New Issue