ChatGPT's DOM restructure breaks browser extensions; dev shares resilient selectors fix

Calm_Home3943 · reddit · 2026-10-14

A Reddit developer reports that ChatGPT recently changed its frontend HTML/DOM, removing selectors like data-message-author-role in some UI versions and breaking Chrome extensions that scrape conversations. His extension AI Memory Vault was affected; he updated it with new selectors and fallbacks (conversation turns, article containers, Markdown content), open-sourced the fix, and recommends using stable selectors, MutationObserver for DOM monitoring, and avoiding dynamically generated class names.

Original post →

More from coding & agent

coding & agent channel →