Skip to content

Commit

Permalink
fix: do not misclick
Browse files Browse the repository at this point in the history
  • Loading branch information
acro5piano committed Jul 20, 2023
1 parent 4a06f75 commit 3b753dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sites/chat.openai.com/index.ts
Expand Up @@ -2,11 +2,11 @@
* Maximize presentation with M-z.
*/
document.addEventListener('keyup', (event) => {
console.log(event)
if (event.key === 'o' && event.altKey) {
for (const elm of document.querySelectorAll('a')) {
if (elm.textContent?.includes('New chat')) {
elm.click()
break
}
}
}
Expand Down

0 comments on commit 3b753dd

Please sign in to comment.