Chrome extension swaps DOM scraping for site's internal API, cutting AI Studio export from 150s to under 1s
A developer built AI Studio Exporter, an open source Chrome extension, to export Google AI Studio conversations, which the site does not support natively. The first version scrolled the page and read messages from the DOM, which was slow, could miss messages, and captured only thumbnails of uploaded files. The second version instead calls the same undocumented internal API the AI Studio frontend uses, reducing exports of a 200-message conversation from about 150 seconds to under one second. Because the API's responses are unlabeled nested arrays, the developer built a decoder and tolerant helpers that degrade gracefully if Google changes the format. The extension runs a small script in the page's main context to get around a CORS restriction that blocks requests from extension content scripts.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in