26

Websites which use Content-Disposition: attachment force me to download the document which I dislike.

For example I want to print out the invoices of my ISP for taxation purposes. Their stupid website forces me to download twelve PDF files like 5834886-1_104679449.pdf. These clutter up my download folder. Even worse if the link is not informative enough and I need to check the document by opening it.

How can I disable Content-Disposition:attachment and force my browser to use inline display of the PDF? If I want to save the file, I can do it from the browser menu or press Control/CommandS.

I am using Google Chrome on OS X, but I would like to have a generic solution working for all browsers and operating systems, if possible.

slhck
  • 223,558
  • 70
  • 607
  • 592
nalply
  • 393
  • 1
  • 4
  • 9
  • 1
    Related question: http://superuser.com/questions/199382/make-chrome-always-open-pdfs-itself – Pi Delport Mar 31 '14 at 08:18
  • 3
    This is currently a "won't fix" issue in the Chromium issue tracker: https://code.google.com/p/chromium/issues/detail?id=67643 Using one of the linked Chrome extensions is probably the only solution to this, for now. – Pi Delport Mar 31 '14 at 08:37
  • 1
    Or try https://chrome.google.com/webstore/search/undisposition?hl=en – nalply Aug 15 '14 at 07:53
  • 1
    @nalply Thank you, Undisposition works beautifully. You should write that as an answer :) – Navin Nov 06 '16 at 06:02
  • @PiDelport Cannot view bug id `67643`. I get a `Permission denied` page. – Darren Ng Aug 03 '21 at 08:20

2 Answers2

13

For everyone still looking for a proper solution, try this plugin: https://chrome.google.com/webstore/search/undisposition?hl=en

Credits to comment from nalply

janxb
  • 131
  • 1
  • 2
  • 3
    A similar approach, described in [this answer](https://superuser.com/a/755252/280128), uses the [Modify Content-Type](https://chrome.google.com/webstore/detail/modify-content-type/jnfofbopfpaoeojgieggflbpcblhfhka?hl=en-US) extension. That one has a slightly higher set-up complexity but it allows to restrict the changes to pre-specified domains. – E.P. Jan 04 '21 at 17:13
3

Not a generic solution, but for those looking for a Firefox solution there is an addon called Inline Disposition.

Vykintasv
  • 31
  • 4