Last active
April 30, 2023 00:10
-
-
Save danwashusen/bbc05f11d834b290d5c29e9de715ffab to your computer and use it in GitHub Desktop.
A very simple tampermonkey script to make ChatGPT more UltraWide monitor friendly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name ChatGPT Ultrawide | |
| // @namespace https://github.com/danwashusen/tampermonkey/chatgpt-ultrawide | |
| // @version 0.1 | |
| // @description Aims to make ChatGPT more UltraWide friendly. | |
| // @author Dan W | |
| // @match https://chat.openai.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function addStyle(css) { | |
| const style = document.createElement('style'); | |
| style.type = 'text/css'; | |
| style.appendChild(document.createTextNode(css)); | |
| document.head.appendChild(style); | |
| } | |
| const newMediaRule = ` | |
| @media (min-width: 1024px) { | |
| div.text-base { | |
| max-width: 92% !important; | |
| } | |
| }`; | |
| addStyle(newMediaRule); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment