NOTE: Currently NOT working as of 2025-07-28 (see update below).
This script allows downloading pdf files from studydrive. Previously this was a normal feature on studydrive but now it's behind a paywall. I created this script because the other scripts don't work anymore.
To use it simply wait until the PDF-preview is fully loaded and then press the download button. If this button does not work you can also trigger the download via a menu command (click on the tampermonkey icon to access it).
You need to be logged into studydrive to use this script.
Update 2025-06-07:
Studydrive changed their mechanics quite a bit lately, switching from the PDF.js to the proprietary PSPDFKit library. I had to reengineer the script quite a bit and choose another approach to get to the pdf but it seems to be working now.
Update: 2025-07-28:
Studydrive seems to have changed their mechanics to detect the injection in the browsers fetch function this script currently uses (the console log now contains a Uncaught Error: Extension injection detected!
error message). I currently don't have the time to fix this script and I am also not entirely sure if I can. If someone want's to take a crack at it they are of course welcome.