应用截图

Don't Download PDFs截图1

详细介绍

Encourage PDFs to show in the browser instead of downloading. By Nick Semenkovich .

Annoyed by PDFs that download and save instead of just showing in the tab?

This extension encourages PDFs to show in the browser rather than downloading.

That's it. Nothing else.

======== Details ========

This works by setting the "Content-Disposition: Inline" header under these conditions:

- Content is displayed in the full window (main_frame)
AND

- The response contains "Content-type: application/pdf"
OR
- The response contains "Content-type: application/octet-stream" with a filename of "*.pdf"

Note that some sites use the "download" attribute in links (e.g. ) which we can't override, but you can right-click those PDFs and select "Open Link in a New Tab".

======== CODE ========
https://github.com/semenko/chrome-force-pdf-inline

Copyright 2014-2024 Nick Semenkovich

Released under the MIT License. See LICENSE for details.