webrecorder / replayweb.page

Serverless replay of web archives directly in the browser
https://replayweb.page
GNU Affero General Public License v3.0
657 stars 53 forks source link

Is Frameless Replay Possible With ReplayWeb.page? #198

Open treid003 opened 11 months ago

treid003 commented 11 months ago

Is it possible for ReplayWeb.page to replay an archived web page without loading the archived web page into an <iframe>?

pywb supports frameless replay, so I was wondering if it is possible with ReplayWeb.page as well.

Shrinks99 commented 11 months ago

I think you're looking for the flag embed="replayonly". See https://replayweb.page/docs/embedding#embed-modes for details.

treid003 commented 11 months ago

The embed="replayonly" option still loads the archived web page into an <iframe>. I was wondering if the archived web page can be loaded without using an <iframe>.

replayonly_mode

Shrinks99 commented 11 months ago

Ah okay, in that case no. Not to my knowledge. Is there a specific reason you need this? (I assume yes, but would be interested to know why!)

treid003 commented 11 months ago

Ok, thanks. I assumed this was the case but wanted to make sure.

If there was a frameless replay option, then it would be easier to:

Shrinks99 commented 11 months ago

Off the top of my head, the latter may be possible with integration of html2canvas but that work is not currently planned.

ikreymer commented 11 months ago

Ok, thanks. I assumed this was the case but wanted to make sure.

If there was a frameless replay option, then it would be easier to:

  • Perform automated interactions with the archived web page
  • Take a full sized screenshot of the entire archived web page

Could you say more about these use cases? Are you trying to create screenshots of replay in an automated way? That might be something we could support in the future, though perhaps directly via wabac.js

As far as automating interactions, you can still interact with the page directly. It sounds like you're looking for a frameless mode that has no banner / no other UI elements either right?

In general, its sort of not something we'd want to support as it makes it harder to tell if a page is a web archive, but might be something that can be configured with wabac.js

treid003 commented 11 months ago

I have been checking different replay systems to see how difficult it is to take full sized screenshots of an archived web page when using tools like Chrome's "Capture full size screenshot" feature. When an archived web page is loaded in an <iframe> the screenshot tools that I have tried so far are not able to get a screenshot of the entire archived web page.

Arquivo.pt has two features (Fullscreen and Screenshot) that make it easy to take a screenshot of the entire archived web page.

Arquivo.pt's Fullscreen feature does not load the archived web page in an <iframe>, which makes it easy to take a screenshot of the entire web page when using the browser's screenshot tool: https://arquivo.pt/wayback/20230426011101/https://www.leroymerlin.com.br/ arquivo pt_noFrame_replay_20230426011101_https___www leroymerlin com br_

Arquivo.pt's Screenshot feature attempts to take a screenshot of the entire archived web page: https://arquivo.pt/wayback/20191221195416/https://stadia.google.com/ stadia-one-place-for-all-the-w-20191221195416

If ReplayWeb.page had a similar screenshot feature, removing the replay system's UI would be useful when comparing the archived web page screenshot with the live web page screenshot.