TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Deeplinks.js – Simple deep links to selections of text on your website

76 点作者 wesleyac超过 3 年前

5 条评论

bouvin超过 3 年前
Well, that&#x27;s one way to make me feel young again. Part of my PhD [1] (2001) was creating solid ways of linking into Web pages with the aim of creating hypermedia structures on top of existing Web sites without requiring write access to said sites.<p>Robust location specifiers is an old problem within what used to be the open hypermedia systems (open as in capable of integrating existing software applications into a hypermedia system) research community. It is certainly possible to create heuristics (such as this system here) that work for some use cases (and you can make it more robust by adding multiple ways of specifying the location, e.g., the text selection, offsets from beginning and start, DOM traversals from root or nearest IDed element), but the author is wise to set it as a non goal to make this universally applicable. For that to work, continued control and tracking of the surrounding document would be necessary, and for better or for worse that is not the way hypermedia systems evolved.<p>[1] <a href="https:&#x2F;&#x2F;cs.au.dk&#x2F;~bouvin&#x2F;Arakne&#x2F;thesis.pdf" rel="nofollow">https:&#x2F;&#x2F;cs.au.dk&#x2F;~bouvin&#x2F;Arakne&#x2F;thesis.pdf</a>
xnx超过 3 年前
Mentioned on the page, but this is a good opportunity to point out that similar functionality is now built directly into Chrome (and other browsers?) with links that look like: <a href="https:&#x2F;&#x2F;github.com&#x2F;WesleyAC&#x2F;deeplinks#:~:text=not%20implement%20the-,WICG%20Text%20Fragment,-interface%2C%20although%20it%27s" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WesleyAC&#x2F;deeplinks#:~:text=not%20implemen...</a>
评论 #29505529 未加载
评论 #29505298 未加载
评论 #29506401 未加载
评论 #29508553 未加载
AHASIC超过 3 年前
Right click -&gt; Copy Link to Highlight on chrome
netman21超过 3 年前
Exactly what ereader buk.io does for ebooks.
nathias超过 3 年前
oh wow this is cool