rNeomy / reader-view

Access Firefox's built in reader view from right click context menu
https://webextension.org/listing/chrome-reader-view.html
Mozilla Public License 2.0
464 stars 73 forks source link

Can you improve the printout? thank you #149

Open zhl111 opened 1 year ago

zhl111 commented 1 year ago

image

rNeomy commented 1 year ago

Thanks for the report. The extension was supposed to remove the theme for the print view. For now, append the following CSS to the "Custom Styling" section of the options page.

@media print {
  body {
    --fg: #000 !important;
    --bd: #000 !important;
    --bg: #fff !important;
  }
}
zhl111 commented 1 year ago

After the modification, the page can't output the PDF with dark background anymore. I don't want this feature to disappear, it used to be half light color and half dark color, what I want to solve is this problem, it is quite good to keep the option of dark background.

zhl111 commented 1 year ago
rNeomy commented 1 year ago

The 0.6.7 release has an improved print layout using the following CSS code:

@media print {
  body[data-mode] {
    --fg: #000;
    --bd: #000;
    --bg: #fff;

    width: unset;
    padding: 0;
    margin: 0;
  }
}

Just set the Margins to the default value, and you will get a clean margin on all sides. Since this is not a perfect solution, I'll keep this open for code suggestions.