Dev Tools · 3h ago
Developer reverse-engineers Google's undocumented API to extract iframe data
A developer spent two days extracting flashcard data from Google's NotebookLM, which renders content inside a cross-origin iframe. By intercepting the network request to Google's internal batchexecute endpoint, they parsed a 1.5MB response to find clean JSON. The solution required injecting a script into the page's main world to hook XHR calls, bypassing the same-origin policy.
Meridian48 take
This is a clever hack, but relying on undocumented internal APIs is fragile—Google could rename the RPC ID at any time, breaking the extension.
Read the full reporting
How I pulled data out of a cross-origin iframe I couldn't touch →
DEV Community
reverse-engineeringbrowser-security