4 ms·
The article is great and I enjoyed it. It gives good insight into React and inspecting minified web apps, however I'd like to point out two other ways you could
by MzHN 10y ago
The article is great and I enjoyed it. It gives good insight into React and inspecting minified web apps, however I'd like to point out two other ways you could go about it.
Sometimes you can't get inside the application, because the JavaScript is scoped in such a way that nothing leaks out. In those cases you can make an extension that runs before any script on the page, and hijacks native JS such as XMLHttpRequest or WebSocket.
In other words, declare your own WebSocket, and pass everything through to the real one, while intercepting any data you're interested in.
Also for this specific case, you could use Chrome's built-in API for extensions to intercept requests.[1]
As a benefit in some cases these methods can be less prone to breaking changes in the web app, but the opposite can also be true.
[1] https://developer.chrome.com/extensions/webRequest https://developer.chrome.com/extensions/webRequest
- poxrud 10y agoThanks for the extension. To quickly see what's going on you can also just monkey patch the native functions right in the console.