Hi, nice to hear what you’re using this for.
If you embed ReplayWeb.page, you can set various options, as documented in ReplayWeb.page embedding. It looks like the replayonly embed mode may come close to what you want.
There are two ways to modify how an archived page is shown:
- Modify the resulting archive. You probably have the whole archive packed in a WACZ file. You could unzip it, modify the WARC records, zip it again, and replay that. This requires no changes to ReplayWeb.page, and if you’re familiar with basic software development and WARC files, this may be a suitable approach.
- Inject Javascript into the web page when being replayed. There is an
injectScriptsoption for the ReplayWeb.page service worker, but it is not really documented (see also this thread). Currently it is used to inject ruffle for playing flash content. I’m using this Docker re-packaging of ReplayWeb.page that has a small patch to run custom Javascript in each page (inject.js). There you can modify the DOM of each page to adapt it to your needs.
Hope this helps you on the way.