Skip to content

MHSEA/openai-chatgpt-4o-auto-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”„ ChatGPT GPT 4o + Temporary Chat Automation

A fast and lightweight Tampermonkey userscript that:

βœ… Automatically enables Temporary Chat mode
βœ… Automatically selects GPT-4o
βœ… Adds a Ctrl + Space keyboard shortcut to toggle Temporary Chat
βœ… Skips execution entirely if URL already has ?model=gpt-4o&temporary-chat=true
βœ… Optimized for speed and reliability β€” even on route changes


πŸš€ Features

  • 🧠 Auto-enables Temporary Chat on every page load
  • ⚑ Forces GPT-4o model selection after temp chat
  • πŸŽ›οΈ Ctrl + Space toggle to manually switch temp chat on/off
  • πŸ§ͺ Smart checks to avoid redundant actions
  • πŸ” Detects route changes and reapplies settings if needed
  • πŸ›‘ Does not run if URL already includes the correct query params

2025-08-12_01-54-37-ezgif com-video-to-gif-converter


πŸ“ Important Notes If you're not seeing GPT-4o in the model selector: 1- Go to chatgpt.com on a PC or browser 2- Open Settings β†’ General 3- Enable "Show legacy models" ❌ This script does not work in the ChatGPT mobile app


πŸ’» Installation

  1. Install Tampermonkey for your browser.
  2. Click β€œCreate a new script” in the Tampermonkey dashboard.
  3. Paste in the contents of chatgpt-gpt4o-automation.js.
  4. Save the script and reload https://chatgpt.com.

⌨️ Shortcut

Key Combo Action
Ctrl + Space Toggle Temporary Chat manually

🧩 How it works

  • Uses fast polling (15ms) for near-instant detection
  • Mimics real mouse and keyboard events for compatibility
  • Uses mutation-safe selectors and retry strategies
  • Runs in strict order: Temp Chat β†’ GPT-4o

πŸ”’ Note on Direct URL Parameters

OpenAI no longer allows selecting models or toggling Temporary Chat via URL parameters alone. For example, visiting: https://chatgpt.com/?model=gpt-4o won’t apply the desired settings automatically.

This script solves that by simulating real user interaction to:

  • βœ… Enable Temporary Chat
  • βœ… Select GPT-4o via the dropdown

πŸ›‘ If the URL contains model=gpt-5, the script respects your choice and will not force GPT-4o. Additionally, if model=gpt-4o&temporary-chat=true is already set, the script won’t run at all to avoid unnecessary processing.


πŸ“œ License

MIT License


πŸ‘¨β€πŸ’» Author

Maintained by MHSEA


🧠 Tip

Pin this script to the top of your Tampermonkey list to ensure it runs before others!

About

Automatically enables GPT-4o and Temporary Chat on ChatGPT load. Includes Ctrl + Space toggle. Fast, reliable, and skips execution when correct URL parameters are already set.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors