Html-whatsapp spammer

let message = prompt("תכתוב את ההודעה שברצונך להספים  ", "‎");
let counter = parseInt(prompt("כמה פעמים? ", 10));
window.InputEvent = window.Event || window.InputEvent;
let event = new InputEvent("input", { bubbles: true });
let textbox = document.getElementsByClassName("_13NKt copyable-text selectable-text")[1];
for (let index = 0; index < counter; index++) {
textbox.innerHTML = message;
textbox.dispatchEvent(event);
document.getElementsByClassName("_4sWnG")[0].click();
}
Ron Niri