ChatGPT: hide the conversation sidebar
Hides the conversation list sidebar and expands the chat area to the full window width.
Code to copy
// Toggle the conversation sidebar for a distraction-free view
(function () {
var id = 'jz-cgpt-hide-sidebar';
var el = document.getElementById(id);
if (el) { el.remove(); return; }
var s = document.createElement('style');
s.id = id;
s.textContent = '#stage-slideover-sidebar,nav[aria-label*="history" i],' +
'.draggable + div > nav{display:none!important;}main{margin-left:0!important;}';
document.head.appendChild(s);
})();
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's JavaScript panel and save — it runs on every page visit.
Rate this example
No ratings yet — be the first.