*.dannyg

Downloading Embedded PDF in Chrome

Feb
11

My girlfriend ran into an issue yesterday with her online school. She currently has to download textbooks and they have some kind of custom authentication utilizing Adobe Acrobat Forms. Google Chrome sometime back made their own PDF plugin implementation which is turned on by default. We disabled this, so that whenever she downloaded a book, she could get proper use of them.

Yesterday she informed me of a conflicting issue. Periodically her school will send her letters which show up on a webpage in an object tag.

Rather than instruct her to keep turning this on and off which would be a major headache, I decided to write a UserScript. I installed TamperMonkey (equivalent to GreaseMonkey on FireFox).

I started writing the script (which assumes jQuery is on the page, which it was in this case), and wound up with the below. She can now leave Chrome PDF Viewer off and those embedded PDFs are now links she click to download.

Comments

Comments are closed.