rhadamanthe / host-grabber-pp

A web extension, originally designed for Firefox, to find and download media files from various hosts.
MIT License
16 stars 6 forks source link

Debug view: add an option to display the original source code #62

Closed rhadamanthe closed 5 years ago

rhadamanthe commented 5 years ago

Indeed, it appears the one Firefox displays (Ctrl + U) and what is downloaded does not always matches. There can be differences due to JS scripts.

rhadamanthe commented 5 years ago

Are we sure about it? It may be true for pages we download directly (e.g. links we explore), but not for the current page, as we get the source code from the tab. So, what we want in debug mode, is to add a button or something that allows us to display the source code for a given URL (not interpreted by the browser).

We should try to open a new tab, with view-source as a prefix for the URL. To verify on an example.