i don"t desire to check out that Discard/Keep dialog when downloading a pdf paper in browser. I just want that to instantly save to mine default location. I"m making use of chrome top top Ubuntu 13.04.



I have actually a equipment which operated on windows 10. The concern can be fixed by editing "download_file_types.pb" which is situated in my computer system at

%localappdata%GoogleChromeUser DataFileTypePolicies21download_file_types.pb

The file contains various file extensions. Just hexedit the paper and remove the extension you want chrome come ignore. E.g. I want to download *.mat files, therefore I sought "mat" and replaced it through "xxx"

This worked for me. Make backups as it is simply a workaround.


I fear that the only means to disable this is to patch Chrome.

The document that includes the blacklist is /src/chrome/browser/download/download_extensions.cc.

One would simply need to remove the heat containing "pdf", AllowOnUserGesture , and also recompile.

Or change DownloadDangerLevel GetFileDangerLevel(const base::FilePath& path) with:

DownloadDangerLevel GetFileDangerLevel(const base::FilePath& path) return NotDangerous;which appears to have actually some irony come it.

You are watching: This type of file can harm your computer

UPDATE: I wrote a patch and have efficiently tested it.

-213,6 +213,7
}; DownloadDangerLevel GetFileDangerLevel(const base::FilePath& path) {+ return NotDangerous; base::FilePath::StringType extension(path.Extension()); if (extension.empty()) return NotDangerous;If top top Gentoo, you have the right to just ar this in a paper in /etc/portage/patches/www-client/chromium/ and emerge chromium.

enhance this price
edited Jun 8 "13 at 9:45
answered might 13 "13 at 2:15

Dan D.Dan D.
5,61822 yellow badges3333 silver- badges4040 bronze title
add a comment |
You can disable this feature through the progressed Settings choice in Chrome Settings. (Please check out the screenshot below.) Unfortunately, it"s not really granular due to the fact that disabling it likewise disables various other safe browsing features.
You perhaps can disable safe searching if you should download a variety of files that you understand to it is in safe, and then you can re-enable safe browsing afterwards.

enhance this answer
edited Feb 18 "19 at 22:42
answer Feb 18 "19 in ~ 18:46

11944 bronze title
include a comment |

your Answer

Thanks because that contributing response to supervisor User!

Please be sure to answer the question. Carry out details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them increase with references or an individual experience.

To learn more, see our tips on writing an excellent answers.

See more: 10Ml Equals How Many Teaspoons Is 10 Ml To Teaspoons (Tsp) Converter

Draft saved
Draft discarded

Sign increase or log in in

authorize up utilizing Google
sign up utilizing Facebook
authorize up using Email and Password

Post together a guest

email Required, but never shown

Post as a guest


Required, yet never shown

short article Your price Discard

By clicking “Post your Answer”, friend agree to our regards to service, privacy policy and also cookie policy

Not the answer you're looking for? Browse other questions tagged google-chrome pdf or asking your own question.

The Overflow Blog
Featured ~ above Meta
Disable chrome's built-in automatic virus scanning of download files
Download arbitrary paper with Google Chrome
conserve downloads in the same location I conserved the previous download in Chrome
just how do i make Google Chrome conserve PDF files without opened a 2nd window?
PDF is presented as binary message in web browser instead of being downloaded
exactly how to force Google Chrome to just download PDF however not open them
open then conserve PDF in Chrome
hot Network questions more hot questions

inquiry feed
i ordered it to RSS
question feed To i ordered it to this RSS feed, copy and also paste this URL right into your RSS reader.


at sight User
stack Exchange Network
site architecture / logo © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.11.5.40661

Super User works finest with JavaScript permitted

your privacy

By clicking “Accept all cookies”, friend agree stack Exchange can store cookies on your maker and disclose info in accordance with our Cookie Policy.