Automatically collapses long AI responses on Gemini to optimize the chat window, featuring quick toggle and content preview.
Plugin Name: Smart Gemini Window Optimizer (Chat AI Response Manager)
🚀 Feature Overview
This User Script is designed to fundamentally solve the problem of overwhelming interfaces and difficult navigation that occurs during long conversations with Large Language Models (LLMs). By intelligently collapsing lengthy AI responses, it greatly improves the visual efficiency and user experience of your chat windows.
✨ Key Features
* Automatic Smart Collapse: Upon loading history or switching conversations, the script automatically collapses long AI responses to a fixed height (120px) after a brief delay.
* Interactive Toggle: Simply click the user's message area or avatar to quickly toggle the expand/collapse state of the subsequent AI response.
* Efficient Content Preview: In the collapsed state, the content is automatically offset (scrolled up by ~90px), ensuring you can instantly see the last few lines of the text, allowing for quick comprehension of the response summary.
* Visual Optimization: The collapsed area features a light blue gradient overlay and rounded corners, providing a clear visual cue and a more polished look.
* One-Click Management: A "Collapse All" button is available in the bottom-right corner, allowing you to instantly tidy up the entire conversation window.
💻 Compatibility
This script has been specifically optimized and is reliably compatible with the following major AI chat platforms:
* Gemini(`https://gemini.google.com/*`)
📌 Usage Notes
1. You must have a user script manager like Tampermonkey or Greasemonkey installed in your browser.
2. Install this script through the manager, and it will automatically activate on the supported sites.