Thursday, September 2, 2021

Modify any web page before printing it

It's the little things that have the greatest impact...

I keep an archive of PDF-ified web pages that I find valuable. They're searchable because I use Recoll to index them, along with the web-ui front-end.

The below makes cleaning up a web page easy, so that it can be saved to PDF.

Create a bookmark and enter the following in the URL field:

    javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0

When you have that, go to the web page that you want to save, click on the above bookmark and modify the page as you would in a word processor or text editor. You can then call up the browser's print function and save the page as a PDF.

No comments:

Post a Comment