Fixes ChatGPT bug where caret disappears after pasting CRLF-based newlines (Windows standard); converts CRLF to LF and pastes properly in ChatGPT ProseMirror editor
This fixes the ChatGPT bug where, after pasting text containing CRLF-based newlines into the input field, the caret (text cursor) is invisible. 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 script simply replaces each CRLF with a LF for the paste operation.