Force PDFs to render inline instead of downloading (for Chrome's Beta & Dev channels). By Nick Semenkovich <firstname.lastname@example.org>
NOTE: This *requires* a BETA release of Chrome (since it uses the unreleased declarativeWebRequest API).
WARNING: This may have security risks by overriding the attachment header. Use at your own risk.
Annoyed by PDFs that save and download instead of opening?
This extension forces PDFs to render inline instead of downloading (by overwriting the "Content-disposition: attachment" header).
- Uses ~zero RAM (it doesn't use a persistent background page)
- Rewrites content that's in the whole window (main_frame)
- Rewrites all responses with "Content-type: application/pdf"
- Rewrites responses with "Content-type: application/octet-stream" with a filename=*.pdf
======== CODE ========
Please contribute! https://github.com/semenko/chrome-force-pdf-inline
Copyright 2014-2015, Nick Semenkovich <email@example.com>
Released under the MIT License. See LICENSE for details.