Don't Download PDFs icon

Don't Download PDFs

Extension Actions

CRX ID
mhigkpfinipcldigeeonlokhpdpnkelg
Description from extension meta

Encourage PDFs to show in the browser instead of downloading. By Nick Semenkovich <[email protected]>.

Image from store
Don't Download PDFs
Description from store

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

Andrew Gilero
I used to modify the content header to force PDFs to open instead of downloading but that stopped working when they disable Manifest V2 support. I found this after about 2 hours of trying various solution and it was a tremendous relief. Work as advertised for me. Version 139.0.7258.67 (Official Build) (64-bit)
jk
Used to work really well, though the latest update made the PDF detection really aggressive and it tries to render PDFs out of zip files as well. Could you fix this real quick?
porg
Good feature idea! Sadly a of 2024-03-21 the extension in it lates released version 2016.4.7 is not working anymore in the current Chrome 122.0.6261.129. Tried it on https://www.bmf.gv.at/services/publikationen/das-steuerbuch.html where the PDFs use "Content-Disposition: attachment" and enforcing PDF inline display fails, instead the PDFs just trigger a download.
Amir
All you need to not to save a PDF but to read it!
Amir
All you need to not to save a PDF but to read it!
Hari Tharani
not even opening very bad n not useful
Hari Tharani
not even opening very bad n not useful
Michael Richter
Exactly what I was looking for.
Michael Richter
Exactly what I was looking for.
Chris Vydas
Did not work at all! Not working on pc and not working on mobile.
Chris Vydas
Did not work at all! Not working on pc and not working on mobile.
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.
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.
Tom Lomax
Amazing, just the thing for perusing datasheets etc. Still working great in Apr 2019...
Tom Lomax
Amazing, just the thing for perusing datasheets etc. Still working great in Apr 2019...
Brissa
Does exactly what it says it will. Great extension!
Brissa
Does exactly what it says it will. Great extension!
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).
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).
Anonymous
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 :)
Anonymous
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 :)
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).
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).
Şahin Karabıçak
Çok memnunum
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.
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.
Paul Combal
It doesn't seem to always work.
Paul Combal
It doesn't seem to always work.