Don't Download PDFs

★★★★★
★★★★★
2,000+ users
<
>
Winmau Prism Delta Dark Flame Standard Dart Flights
★★★★★
★★★★★
Israel 2023 Complete Year Set - Mint Tabs And Souvenir Sheets
★★★★★
★★★★★
Leopard and Floral Facebook Set, Customizable Facebook, DIY Facebook, Editable Facebook Set, Instant Download Template, Calamity Jane
★★★★★
★★★★★
Casio HR-10RC Printing Calculator
★★★★★
★★★★★
Fisher Price Jumbo Little People Lot Large Figures Mom Farmer
★★★★★
★★★★★
Pocketalk S Portable Voice Translator (Black)
★★★★★
★★★★★

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. <a href="" download>) 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/chr ome-force-pdf-inline

Copyright 2014-2024 Nick Semenkovich <semenko@alum.mit.edu>

Released under the MIT License. See LICENSE for details.
Related