Skip to content

Instantly share code, notes, and snippets.

@danwashusen
Last active April 30, 2023 00:10
Show Gist options
  • Select an option

  • Save danwashusen/bbc05f11d834b290d5c29e9de715ffab to your computer and use it in GitHub Desktop.

Select an option

Save danwashusen/bbc05f11d834b290d5c29e9de715ffab to your computer and use it in GitHub Desktop.
A very simple tampermonkey script to make ChatGPT more UltraWide monitor friendly.
// ==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