Dev Tools · 2h ago
How to Detect Which AI Chat Platform a User Is On
A developer shares code for identifying ChatGPT, Claude, Gemini, and Copilot via URL hostname and DOM patterns. The method uses a hostname map for fast detection and falls back to structural DOM signatures for embedded or custom-domain interfaces. This enables extensions to adapt behavior per platform without relying on fragile class names.
Meridian48 take
Practical guide for extension builders, but DOM patterns may still break with redesigns—URL matching is the only truly stable approach.
Read the full reporting
Detecting Which AI Chat Platform You're On: URL and DOM Patterns for ChatGPT, Claude, Gemini, and Copilot →
DEV Community
ai-chat-platformsbrowser-extensions