Skip to content

Instantly share code, notes, and snippets.

@Preston-Landers
Last active May 25, 2023 18:39
Show Gist options
  • Save Preston-Landers/f6c79ab8ad1172291458468892411e7c to your computer and use it in GitHub Desktop.
Save Preston-Landers/f6c79ab8ad1172291458468892411e7c to your computer and use it in GitHub Desktop.
Tweak ChatGPT CSS to allow better printing of the conversation

ChatGPT print hack

If you want to print a conversation (or PDF) from ChatGPT, as of this writing the CSS makes it cut off everything after the first page.

Here's a simple little hack to enable printing the entire conversation.

Open the Javascript Console (Ctrl-Shift-J) or Developer Tools (Ctrl-Shift-I). Make sure the focus is on the console prompt >.

Paste and run this:

document.querySelectorAll('.overflow-hidden').forEach(element => {
  element.classList.remove('overflow-hidden');
})

You should then be able to print (or convert to PDF) entire conversations more easily. Note that you may have to make sure the entire conversation is loaded into your browser because long ones are split up into segments.

When finished printing, simply reload the page (F5) to go back to the way it was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment