Updated for latest Discord version

This commit is contained in:
Jiiks 2016-06-24 02:12:41 +03:00
parent 849c139124
commit ef3d2ad9b1
1 changed files with 8 additions and 7 deletions

View File

@ -13,13 +13,14 @@ dblClickEdit.prototype.start = function () {
var msg = target.parents(".message").first();
var opt = msg.find(".btn-option");
opt.click();
var popout = $(".option-popout");
if(popout.children().length == 2) {
popout.children().first().click();
} else {
popout.hide();
}
$.each($(".popout .btn-item"), (index, value) => {
var option = $(value);
if(option.text() === "Edit") {
option.click();
}
});
}
});
};