gildas-lormeau / SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file
GNU Affero General Public License v3.0
15.64k stars 1.01k forks source link

Option "save print version" #1567

Open mabra opened 1 month ago

mabra commented 1 month ago

Is your feature request related to a problem? Please describe.

On larger webseites which publish articles, these pages usually contain ads, navigation and so on and they provide in many cases alternative CSS for the case you print the page. If you then decide to print - "print to pdf" - navigation and ads are omitted in output. Most of the time, exactly what you wish.

Describe the solution you'd like

Another save option, say "save print-version", which switches - somehow - to the version described above and then save the page would make it really perfect!

Describe alternatives you've considered (optional)

Saving as PDF, but this is in many cases (I can only talk about firefox) very ugly, image are overlayed by headers and such effect and sometime some content is not in the output. A worst case in saving a webpage.

Additional context (optional)

gildas-lormeau commented 1 month ago

Thank you for the suggestion! I agree it's an interesting feature, I think I could add an option to keep only the stylesheets associated to the print media. It won't be perfect though because it often doesn't exist. In such a case, the native “print to pdf” feature takes care of formatting the page on its own as far as I know.