Greasy Fork is available in English.

chatgpt css

Set width to unset !important for divs with class names containing "tableContainer" on chat.openai.com

Verze ze dne 13. 06. 2025. Zobrazit nejnovější verzi.

// ==UserScript==
// @name         chatgpt css
// @description  Set width to unset !important for divs with class names containing "tableContainer" on chat.openai.com
// @match        https://chat.openai.com/*
// @match        https://chatgpt.com/*
// @version 0.0.1.20250613203142
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function() {
  const style = document.createElement('style');
  style.textContent = `
    div[class*="tableContainer"] {
      width: unset !important;
    }

div[class*="tableContainer"] * {
    padding: unset !important;
    /*margin: unset !important;*/
    height: unset !important;
}

/*[class*="katex"] {
overflow-x: scroll;
outline: solid red !important;
}*/

.katex {
    overflow-x: auto;
    overflow-y: visible !important;
}

.katex .strut {
    display: unset !important;
}

/*v2 additions*/
/**:not([class*="fa-"]):not([class*="icon-"]):not([class*="material-"]):not([class*="fa"]):not([class*="icon"]):not([class*="material"]):not([class~="overflow-x-scroll"]) {
    /* overflow: unset !important; */
    /* display: unset; */
    margin: unset !important;
    padding: unset !important;
    width: unset !important;
    height: unset !important;
    position: unset !important;
    tab-size: unset !important;
    max-width: unset !important;
    min-width: unset !important;
}

div[class*="thread-content"] {
    overflow: auto !important;
} */
`;
  document.head.appendChild(style);
})();