This file contains hidden or 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
let lastSentences = []; | |
let listening = false; | |
let voiceResponse = true; | |
const inChat = window.location.hostname === "chat.openai.com"; | |
const targetNode = document.getElementsByTagName("main")[0]; | |
const observer = new MutationObserver(onMutation); | |
const textArea = document.getElementsByTagName("textarea")[0]; | |
const synth = window.speechSynthesis; | |
const WAKE_WORD = "computer"; |