stuff
This commit is contained in:
parent
de3f1c0d67
commit
7499e9ae10
|
@ -4,7 +4,7 @@ var ChatAliases = (_ => {
|
||||||
return class ChatAliases {
|
return class ChatAliases {
|
||||||
getName () {return "ChatAliases";}
|
getName () {return "ChatAliases";}
|
||||||
|
|
||||||
getVersion () {return "2.1.2";}
|
getVersion () {return "2.1.3";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ var ChatAliases = (_ => {
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"fixed":[["Left over placeholder","Sending a an aliases for a file upload without any other text no longer leaves the message in the textarea"]]
|
"fixed":[["Context Menu Update","Fixes for the context menu update, yaaaaaay"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
|
@ -256,10 +256,11 @@ var ChatAliases = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
injectItem (e, text) {
|
injectItem (e, text) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {name:["FluxContainer(MessageDeveloperModeGroup)", "DeveloperModeGroup"]});
|
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {props:[["id", "devmode-copy-id"]]});
|
||||||
children.splice(index > -1 ? index : children.length, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Group, {
|
children.splice(index > -1 ? index : children.length, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MenuItems.MenuGroup, {
|
||||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Item, {
|
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MenuItems.MenuItem, {
|
||||||
label: "Add to ChatAliases",
|
label: "Add to ChatAliases",
|
||||||
|
id: BDFDB.ContextMenuUtils.createItemId(this.name, "add-alias"),
|
||||||
action: _ => {
|
action: _ => {
|
||||||
BDFDB.ContextMenuUtils.close(e.instance);
|
BDFDB.ContextMenuUtils.close(e.instance);
|
||||||
this.openAddModal(text.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t"));
|
this.openAddModal(text.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t"));
|
||||||
|
|
|
@ -6,7 +6,7 @@ var ChatFilter = (_ => {
|
||||||
return class ChatFilter {
|
return class ChatFilter {
|
||||||
getName () {return "ChatFilter";}
|
getName () {return "ChatFilter";}
|
||||||
|
|
||||||
getVersion () {return "3.4.0";}
|
getVersion () {return "3.4.1";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -14,8 +14,7 @@ var ChatFilter = (_ => {
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"fixed":[["Emojis","Emojis are now properly targeted again, make sure to properly syntax them, for example :dog: or :FeelsBadMan:"]],
|
"fixed":[["Context Menu Update","Fixes for the context menu update, yaaaaaay"]]
|
||||||
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
|
@ -258,10 +257,11 @@ var ChatFilter = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
injectItem (e, text) {
|
injectItem (e, text) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {name:["FluxContainer(MessageDeveloperModeGroup)", "DeveloperModeGroup"]});
|
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {props:[["id", "devmode-copy-id"]]});
|
||||||
children.splice(index > -1 ? index : children.length, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Group, {
|
children.splice(index > -1 ? index : children.length, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MenuItems.MenuGroup, {
|
||||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Item, {
|
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MenuItems.MenuItem, {
|
||||||
label: "Add to ChatFilter",
|
label: "Add to ChatFilter",
|
||||||
|
id: BDFDB.ContextMenuUtils.createItemId(this.name, "add-filter"),
|
||||||
action: _ => {
|
action: _ => {
|
||||||
BDFDB.ContextMenuUtils.close(e.instance);
|
BDFDB.ContextMenuUtils.close(e.instance);
|
||||||
this.openAddModal(text.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t"));
|
this.openAddModal(text.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t"));
|
||||||
|
|
Loading…
Reference in New Issue