Don't Download PDFs

CRX ID
mhigkpfinipcldigeeonlokhpdpnkelg
Status
Live on Store
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 2025-08-11

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 2024-10-06

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 2024-03-21

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 2022-10-11

All you need to not to save a PDF but to read it!

Amir 2022-10-11

All you need to not to save a PDF but to read it!

Hari Tharani 2020-07-14

not even opening very bad n not useful

Hari Tharani 2020-07-14

not even opening very bad n not useful

Michael Richter 2020-02-21

Exactly what I was looking for.

Michael Richter 2020-02-21

Exactly what I was looking for.

Chris Vydas 2019-11-20

Did not work at all! Not working on pc and not working on mobile.

Chris Vydas 2019-11-20

Did not work at all! Not working on pc and not working on mobile.

Ellen Winney 2019-05-30

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 2019-05-30

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 2019-04-29

Amazing, just the thing for perusing datasheets etc. Still working great in Apr 2019...

Tom Lomax 2019-04-29

Amazing, just the thing for perusing datasheets etc. Still working great in Apr 2019...

Brissa 2018-11-03

Does exactly what it says it will. Great extension!

Brissa 2018-11-03

Does exactly what it says it will. Great extension!

Jozef Mikušinec 2018-02-23

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 2018-02-23

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 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 :)

Anonymous 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 :)

Zak Wilson 2017-01-22

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 2017-01-22

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 2016-05-11

Çok memnunum

Adam Geary 2016-02-03

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 2016-02-03

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 2015-11-12

It doesn't seem to always work.

Paul Combal 2015-11-12

It doesn't seem to always work.

Statistics

Installs
2,000
Market
Chrome Web Store
Category
Rating
4.1 (20 votes)
Last update
2024-10-17
Version 2024.10.22
Languages