belinghy / PDFRefPreview

A boorkmarklet for previewing citations and other internal links in PDFs on mouse hover
91 stars 6 forks source link

Autoload for all pdfs? #1

Open 7vq opened 2 years ago

7vq commented 2 years ago

Love this thing. Do I understand correctly that you have to open the bookmark for every pdf though? If yes, any idea if it could be automatically loaded somehow?

belinghy commented 2 years ago

Thanks, glad you found it useful! It's correct that the bookmarklet needs to be reloaded for every pdf.

Unfortunately, Firefox doesn't allow executing scripts on pdf pages (https://bugzilla.mozilla.org/show_bug.cgi?id=1454760). Otherwise, it should be possible to use tampermonkey or similar extensions. Not sure if there's a way other than to upstream the feature to pdf.js.

7vq commented 2 years ago

+1 to upstreaming it to pdf.js. If anyone makes a tampermonkey script I'd love to use it.