Hacker News new | ask | show | jobs
by brownbat 3603 days ago
There's a plugin for Wikipedia where if you hover over a linked term, it will show the first paragraph from that article, usually all you need.

We just need something like that for the web.

2 comments

I like your solution because it doesn't (necessarily) require a backend and would therefore be much simpler to implement.

There are several libraries that extract article text reasonably well. I believe browser extensions are written mainly in HTML/JS/CSS. Would the following node library suffice? https://github.com/ageitgey/node-unfluff

There's just the question of retrieval speed. I suspect simple HTML retrieval is an order of magnitude faster than normal page rendering due to ads, javascript, etc. So the client-only solution you've proposed might indeed be sufficient!

I use QuickLook in Safari on OS X and iOS like that (OS X: triple-finger-tap to get a link preview, iOS: Force touch). It only gets ruined by those "subscribe!" full screen popups.