Gemini: Enter to Newline & Ctrl+Enter to Send

Enter inserts a newline (via native Shift+Enter proxy), Ctrl+Enter sends the message. Fully compatible with Firefox & Chrome.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
Ooldjin
Daily installs
0
Total installs
11
Ratings
1 0 0
Version
1.0.0
Created
2026-01-16
Updated
2026-01-16
Size
4.66 KB
License
MIT
Applies to

Stop accidental sends on Google Gemini! 🛑

This UserScript modifies the default key behavior on gemini.google.com to match the experience of standard code editors and IDEs.

✨ Key Features:

Enter: Inserts a new line (instead of sending the message).

Ctrl+Enter (Windows/Linux) or Cmd+Enter (macOS): Sends the message.

Firefox Compatible: Uses an advanced event proxy method to ensure perfect compatibility with Firefox, resolving common issues where the "Enter" key would become unresponsive.

IME Friendly: Smart detection prevents script interference while typing in Chinese, Japanese, or other IME-based languages (no more accidental newlines while selecting candidates).

💡 Why use this? If you often find yourself sending incomplete messages by accident while trying to start a new paragraph, this script is for you.

Code generated by Google Gemini.