Back to feed
Dev.to
Dev.to
7/14/2026
The original title is 12 words: "My extension 'worked' — it just quietly saved half of every conversation"

The original title is 12 words: "My extension 'worked' — it just quietly saved half of every conversation"

Original: My extension "worked" — it just quietly saved half of every conversation

Short summary

A developer recounts debugging a browser extension that exports AI chat conversations from Claude, ChatGPT, Gemini, and Perplexity. The core issue was guessing CSS selectors for message elements that had silently changed, causing the extension to save only half the conversation. The fix was a 40-line probe script to discover the actual selectors, plus handling edge cases like blob URLs for images and iframe clipboard permissions.

  • Extension silently saved only user messages because CSS selectors for AI responses had changed
  • A 40-line console probe script identified the correct selectors across all four platforms
  • Edge cases included blob URLs (unsavable images) and iframe clipboard permission issues

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more