2 ms·
A browser addon could work. I've toyed around in firefox. You can access the rendered dom in addons and do whatever you want with it, including logging it to fi
by logn 12y ago
A browser addon could work. I've toyed around in firefox. You can access the rendered dom in addons and do whatever you want with it, including logging it to file. Here's an example of writing to file: https://github.com/prekageo/http-request-logger/blob/master/components/httpRequestLogger.js https://github.com/prekageo/http-request-logger/blob/master/...
And you can observe all the requests/responses and wait for an http 200 for the entire page (excluding intermediate 200's for things such as images). Example: https://github.com/MachinePublishers/ScreenSlicer/blob/master/core/firefox-addon/lib/main.js https://github.com/MachinePublishers/ScreenSlicer/blob/maste...
The best approach for this would probably be to tie into a page unload event or some hybrid approach.
Getting started: https://developer.mozilla.org/en-US/Add-ons/SDK https://developer.mozilla.org/en-US/Add-ons/SDK