ChatGPT reduce react repaint duration

Reduces react repaint duration by limiting initial number of messages

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
SadSalmonTwT
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
5
Βαθμολογίες
0 0 0
Έκδοση
1.0.0
Δημιουργήθηκε την
09/06/2025
Ενημερώθηκε την
09/06/2025
Μέγεθος
4 KB
Άδεια
MIT
Εφαρμόζεται σε

Script for ChatGPT.com that will* speed up old and long chats.

On conversation load, ChatGPT will fetch the entire chat history and render it.
That takes forever if you have more than a few dozen messages.
The same issue occurs when you send a new prompt to the conversation, which causes the history to once again rerender (but this time it is not refetched).

This script intercepts the initial request for chat history and trims the response.
The history is a tree graph.
The variable INIT_NUMBER_OF_MESSAGES, which is 10 by default, defines the number of messages on the current branch that will be preserved.
If these messages have children of their own that are hidden (that typically happens on model change or response regeneration), then those are preserved as well.

Do note that if you keep the same conversation going on without ever refreshing the page or changing conversation in the side menu, you will run into the same issue with everything slowing down, since this script does not alter the app state, but just the init data.

*or rather may.
It may not work at all.
If it doesn't, just turn it off, no harm should be done.