belinghy / pdfrefpreview Goto Github PK
View Code? Open in Web Editor NEWA boorkmarklet for previewing citations and other internal links in PDFs on mouse hover
A boorkmarklet for previewing citations and other internal links in PDFs on mouse hover
@belinghy Is it possible for you to merge this facility in the pdf.js chromium extension? Right now I am executing the code from Chrome's console. But it is tedioous to do for every pdf. I tried installing pdf.js for Chromium but npm is not working on my Mac M1 and I have tried everything I could search for.
After updating my firefox this stopped working. After looking around I replaced
event.target.className != "internalLink"
with
!event.target.offsetParent.hasAttribute("data-internal-link")
and it works again.
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?
Thank you for writing this code. I was looking for something exactly like this.
When I mouse over a reference that's on the right side of the page, it still shows the entire page (unlike in the preview gif you have, where it only shows the right part of the page). If I zoom in and click the link, I'm taken to the correct place in both x and y.
For reference the PDF is https://arxiv.org/pdf/1711.07971.pdf and I'm on Firefox 107.0 (latest version as of this post)
Another difference to your gif is that the top left corner of the preview does not coincide with the mouse location. In both cases, the gif is the more desirable behavior.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.