Inline PDFs for UH Moodle icon

Inline PDFs for UH Moodle

Extension Actions

CRX ID
ilddijpognoadbfmlgnkgdogdciogmjn
Status
  • No Privacy Policy
  • Live on Store
Description from extension meta

View University of Helsinki Moodle PDF downloads in Chrome instead of downloading to disk

Image from store
Inline PDFs for UH Moodle
Description from store

Tired of your browser automatically downloading Moodle PDFs to disk? Me too. This extension makes Chrome show PDFs in University of Helsinki's Moodle as a new tab instead.

See the code on GitHub: https://github.com/cxcorp/inline-moodle-pdf-extension

--------------------------------

Boring technical details:
It rewrites "Content-Disposition: attachment" into "Content-Disposition: inline" when:
- the pathname matches "https://moodle.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-moodle-pdf-extension/issues/new

Latest reviews

Teo Uosukainen
I avoided the common mistake.
Teo Uosukainen
I avoided the common mistake.
Hugo Holmqvist
5/5 would not content-disposition: attachment again
Hugo Holmqvist
5/5 would not content-disposition: attachment again