Chatgpt No Enter Chrome Extension

Stop sending messages by accident. This Chrome extension disables the Enter key in ChatGPT and only sends messages when you press Shift + Enter.

Why this extension exists

chatgpt no enter icon Sometimes you’re deep into a conversation with ChatGPT. You’re writing long prompts, crafting complex instructions, or just thinking aloud. Then you hit Enter by accident. Boom. Message sent. Incomplete thought. Wasted token. Lost context.

It happened to me way too many times. So, I made this Chrome extension Disable Enter in ChatGPT.

It’s for anyone who:

  • Writes long prompts
  • Thinks while typing
  • Uses ChatGPT like a scratchpad
  • Accidentally hits Enter and regrets it

chatgpt no enter screenshot

What it does

This extension changes how the Enter key behaves inside ChatGPT:

  • Pressing Enter inserts a new line
  • Shift + Enter does nothing
  • You can still send the message by clicking the Send button manually

This keeps your thoughts together and stops ChatGPT from answering half a prompt.

How it works

The extension watches for the prompt box to load and patches it. When you press Enter, it:

  • Stops the default submit behavior
  • Inserts a newline at the cursor
  • Moves the cursor to the next line
  • Triggers the internal input event so ChatGPT keeps tracking your prompt

Behind the scenes, this is all done by a content script injected into ChatGPT’s page.

Add the extension

You can install the extension in Google Chrome or any Chromium-based browser:

  • Microsoft Edge
  • Brave
  • Opera
  • Vivaldi
  • Amazon Silk
  • Epic

The extension runs automatically on:

  • chat.openai.com
  • chatgpt.com

✅ Lightweight
✅ Private (no data collection)
✅ Runs only on ChatGPT pages

Tech details

Manifest version: 3
Written by: ChatGPT and me
Main script: content.js
Author: Priit Kallas, Amperly AI

This extension was created by prompting ChatGPT to write and debug JavaScript. I tested the result, fixed some issues, rewrote the bad parts, and improved the prompts.

The source code uses a MutationObserver to detect when the prompt box changes, then re-applies the patch to make sure the Enter key always works the way I want.

📁 Files:

  • manifest.json: defines permissions, page matching, and script loading
  • content.js: handles key events and textarea patching
  • Code on git

Support

This extension is super simple. It just works.

If something doesn’t, email me: [email protected]

Extra tip

If you want to count how many tokens you’ve used in ChatGPT, check out my other extension: ChatGPT Token Counter

Stay in control of your ChatGPT prompts. No more accidental sends.