Skip to content

ChatGPT - Improvements by coalaura

Screenshot of ChatGPT - Improvements

Details

Authorcoalaura

LicenseMIT

CategoryChatGPT

Created

Updated

Size725 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Properly wrap code blocks to prevent side to side scrolling and widen the output to allow for more text to fit on screen.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         ChatGPT - Improvements
@version      20240820.12.10
@namespace    coalaura
@description  Properly wrap code blocks to prevent side to side scrolling and widen the output to allow for more text to fit on screen.
@author       coalaura
==/UserStyle== */

@-moz-document url-prefix("https://chatgpt.com/") {
	/* Make code blocks wrap properly */
	pre .overflow-y-auto {
		overflow: hidden;
	}

	code.\!whitespace-pre {
		white-space: pre-wrap !important;
	}

	/* Widen output for regular screens */
	@media (min-width: 1024px) {
		.lg\:max-w-\[40rem\] {
			max-width: 48rem;
		}
	}

	@media (min-width: 1280px) {
		.xl\:max-w-\[48rem\] {
			max-width: 54rem;
		}
	}
}

Reviews

No reviews yet.