extension ExtPose

Inline PDFs for UH Moodle

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

  • (2020-09-07) Teo Uosukainen: I avoided the common mistake.
  • (2019-05-02) Hugo Holmqvist: 5/5 would not content-disposition: attachment again


12 history
5.0 (2 votes)
Last update / version
2019-04-28 / 1.19.1
Listing languages