View MOOC Helsinki PDF downloads in Chrome instead of downloading to disk
View MOOC Helsinki PDF downloads in Chrome instead of downloading to disk
Tired of your browser automatically downloading MOOC PDFs to disk? Me too. This extension makes Chrome show PDFs in MOOC Helsinki as a new tab instead.
See the code on GitHub: https://github.com/cxcorp/inline-mooc-pdf-extension
--------------------------------
Boring technical details:
It rewrites "Content-Disposition: attachment" into "Content-Disposition: inline" when:
- the pathname matches "https://mooc.helsinki.fi/*"
- either the pathname ends in .pdf or the response's Content-Type is application/pdf
- the network request was made from the browser's main frame or a subframe (doesn't touch XHR, style requests, etc.)
Is the extension broken for you? Does it break something else?
Create a new issue here: https://github.com/cxcorp/inline-mooc-pdf-extension/issues/new