https://github.com/amirhosseinghanipour/google-ai-studio-userscript
A Tampermonkey userscript to improve performance on Google AI Studio
https://github.com/amirhosseinghanipour/google-ai-studio-userscript
ai-studio google-ai-studio tampermonkey tampermonkey-javascript-userscripts tampermonkey-script tampermonkey-userscript
Last synced: 6 months ago
JSON representation
A Tampermonkey userscript to improve performance on Google AI Studio
- Host: GitHub
- URL: https://github.com/amirhosseinghanipour/google-ai-studio-userscript
- Owner: amirhosseinghanipour
- License: mit
- Created: 2025-04-02T02:15:04.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-02T02:36:20.000Z (6 months ago)
- Last Synced: 2025-04-02T03:25:42.722Z (6 months ago)
- Topics: ai-studio, google-ai-studio, tampermonkey, tampermonkey-javascript-userscripts, tampermonkey-script, tampermonkey-userscript
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google AI Studio Userscript
A Tampermonkey userscript to improve performance on Google AI Studio by keeping only the last 3 chat turns (prompt, thinking, response).
## Features
- Trims older chat turns to reduce DOM size and lag.
- Runs automatically on page load, every 30 seconds, and on DOM updates.
- Lightweight and easy to install.## Installation
1. Install [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) in your browser.
2. Click [here](https://raw.githubusercontent.com/amirhosseinghanipour/google-ai-studio-userscript/main/google-ai-studio-chat-trimmer.user.js) to install the script, or copy it from the file.
3. Tampermonkey will prompt to add it—confirm and enable.## Usage
- Open [Google AI Studio](https://aistudio.google.com).
- The script will automatically trim chats to the last 3 turns.## Tip for Older Laptops
If you’re using an older laptop and noticed lag with Google AI Studio (like I did!), this script helps, but you can also optimize your browser:
- **Enable Overlay Scrollbars**: In Chrome, go to `chrome://flags`, search "Overlay Scrollbars," set to **Enabled**, and restart. This reduces rendering load.
- **Disable Hardware Acceleration**: Go to `chrome://settings/system`, turn off "Use graphics acceleration when available," and restart. On older hardware, this can prevent slowdowns.## Contributing
Feel free to fork, submit issues, or send pull requests to update the script!## License
[MIT License](LICENSE)