This Tampermonkey script customizes the Enter
key behavior for ChatGPT.
- It adds a
Ctrl+Enter
binding for a new line. - For multiline texts,
Enter
adds a new line instead of sending the text.
- Install Tampermonkey on your browser.
- Click on the
@installURL
link: https://github.com/puzrin/chatgpt-multiliner/raw/master/chatgpt-multiliner.user.js - Tampermonkey will open a new tab and show you the script installation screen. Click on
Install
.
Once installed, the script will automatically run whenever you visit https://chatgpt.com/. It adds the following keybindings to the input field:
Ctrl+Enter
: Inserts a newline at the current cursor position.Enter
: If the input field contains a newline, it inserts a newline at the current cursor position instead of sending the message.