Encourage PDFs to show in the browser instead of downloading. By Nick Semenkovich <[email protected]>.
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/chrome-force-pdf-inline
Copyright 2014-2024 Nick Semenkovich <[email protected]>
Released under the MIT License. See LICENSE for details.
Latest reviews
- (2022-10-11) Amir: All you need to not to save a PDF but to read it!
- (2020-07-14) Hari Tharani: not even opening very bad n not useful
- (2020-02-21) Michael Richter: Exactly what I was looking for.
- (2019-11-20) Chris Vydas: Did not work at all! Not working on pc and not working on mobile.
- (2019-05-30) Ellen Winney: Needed this for a website that insisted its PDFs be downloaded instead of just displayed inline. This extension did exactly what I needed, thanks.
- (2019-04-29) Tom Lomax: Amazing, just the thing for perusing datasheets etc. Still working great in Apr 2019...
- (2018-11-03) Brissa: Does exactly what it says it will. Great extension!
- (2018-02-23) Jozef Mikušinec: Sometimes fails, producing this warning: Warning: This extension failed to modify the response header "content-disposition" of a network request because the modification conflicted with another extension (Render PDFs Inline).
- (2017-06-10) Simple and efficient! An options' panel with a domain white/black list would be a cool addition. Also, the ability to pick other mime-types would be a big plus :)
- (2017-01-22) Zak Wilson: Does what it says on the tin. It would be nice to be able to override content-disposition for other filetypes as well (I sometimes see it with images).
- (2016-05-11) Şahin Karabıçak: Çok memnunum
- (2016-02-03) Adam Geary: Thank you for making this. I've been going through lots of spec sheets for various products lately and half will open inline, half will insist on downloading. I don't want 500 random PDFs sitting around in my downloads folder, so this extension solves that for me.
- (2015-11-12) Paul Combal: It doesn't seem to always work.
Statistics
Installs
2,000
history
Category
Rating
3.9412 (17 votes)
Last update / version
2024-10-17 / 2024.10.22
Listing languages
en