ChatGPT fix for missing caret

Fixes ChatGPT bug where caret disappears after pasting CRLF-based newlines (Windows standard); converts CRLF to LF and pastes properly in ChatGPT ProseMirror editor

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!)

Аўтар
JohnK
Усталяванняў за дзень
0
Усяго ўсталяванняў
6
Рэйтынг
1 0 0
Версія
1.1
Створаны
15.12.2025
Абноўлены
20.12.2025
Памер
1.4 КБ
Ліцэнзія
MIT
Ужываецца на

This fixes the ChatGPT bug where, after pasting text containing CRLF-based newlines (Windows standard) into the input field, the caret (text cursor) is invisible, at least after pressing UpArrow. The problem does not occur when pasting text from MacOS/Linux, which use LF-based newlines. It is apparently a bug with the ProseMirror editor used by ChatGPT.

The bug occurs in Chrome/Edge and probably any Chromium browser. Firefox is not affected - it apparently strips out CR characters before they are added to the DOM.

The script simply replaces each CRLF with a LF for the paste operation.