If you are using Firefox and are annoyed by PDFs being downloaded automatically then you need to adjust browser.download.open_pdf_attachments_inline to true. Just enter about:config in the address bar and toggle the setting.
found via A comment by shscs911