This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function () { | |
let textarea = document.querySelector('textarea[aria-label="Send a message"]') | |
let submit = document.querySelector('[role="button"][aria-label="Send a message"]') | |
if (!textarea || !submit) return alert('Uh oh! Something went wrong. Do you have the chat panel open?') | |
function sendMessage(text) { | |
textarea.click() | |
textarea.value = text | |
submit.removeAttribute('aria-disabled') |