PDF Forcedownload Blocker

#3.13 / 40 rate

PDF Forcedownload Blocker

2,000 users

2013-08-11

brenton.a.milne

Extension Information

5 star
33%
4 star
7%
3 star
10%
2 star
13%
1 star
37%

Supported Languages

Permissions

Description

This extension prevents webservers from forcing pdfs to download rather than open in browser

Many websites will attempt to force you to download linked PDF files, rather than handle them as per your preferences. (By default, your preferences are set to open them in-browser with Chrome's PDF plugin).

This extension blocks two common ways of forcing your browser to download PDF files, allowing you to handle them consistently and as you choose.

WARNING, USE AT OWN RISK:
Some websites load pdfs into invisible elements for download, causing them not to be seen at all when this extension is enabled. Unfortunately I can't find a good solution for this :(
Most commonly where this is encountered (eg on google docs), the pdf is linked with a name not corresponding to it's filename. To this end the extension now ignores links that don't have ".pdf" in them.

I wrote this app for myself and my friends at uni, to combat university pdfs being linked with forced download. I don't really know much Javascript/HTTP, so no guarantees :)