4 ms·
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 so
by brownbat 10y 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.
- olympusmons 10y agoI 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 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!
- kalleboo 10y agoI 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.