Simple Learn PDF Fullscreener

Makes PDFs opened in Learn take up the entire browser window instead of the pitiful small screen it uses by default.

Author
shmpuw
Daily installs
0
Total installs
8
Ratings
0 0 0
Version
1.02
Created
2022-07-20
Updated
2022-07-20
Size
1.97 KB
License
GNU GPL
Applies to

The PDF box is far too small on Learn. You either have to put up with it or open it in something else to read it comfortably. This userscript solves that problem by making the PDF take up the entire page.

There is a Chrome/Firefox extension floating around that does the same thing. However this takes a more complex approach, one that isn't easily understandable. While it's probably safe, I would rather not run unknown code written by another student on a site like Learn. This userscript is simpler and thus easier to understand - basically all it's doing is deleting unnecesary parts of the page and resizing the PDF embed. I added lots of comments so even non-coders can follow along :)

If you aren't familiar with userscripts, they are just small pieces of code run and managed by a userscript extension you install yourself. See https://greasyfork.org/en/help/installing-user-scripts

This userscript has been tested on Firefox and Vivaldi using the Tampermonkey extension, and Chrome using Violentmonkey. I expect it to work with other browser/extension configurations, but can't guarentee it will.