Streamlines replacing the last prompt in a Gemini conversation with robust short and long press support.
This userscript enhances productivity on Gemini by allowing users to quickly replace the last prompt in a conversation using either a short or long press of Ctrl + Q. It supports both automatic submission and manual editing, streamlining prompt iteration for power users and prompt engineers.
Ctrl + Q): Replaces the last prompt and automatically submits it.Ctrl + Q held for 400ms+): Replaces the last prompt but leaves it open for manual editing.[data-test-id="prompt-edit-button"].navigator.clipboard.readText().aria-label="Edit prompt").Enter key press to submit the new prompt if triggered via short press or menu command.| Action | Shortcut | Behavior |
|---|---|---|
| Replace & Submit | Ctrl + Q |
Short press (<400ms) |
| Replace & Edit | Ctrl + Q |
Long press (≥400ms) |
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址