TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Did I reinvent the wheel? (JS plugin to link to page selection)

5 pointsby iafanabout 9 years ago
Spent quite some time looking for a JavaScript library that would allow me to select a part of a web page and send a link to that selection to someone else. I know there are scripts like AnchorJS that allow to deep-link sections and paragraphs, but didn&#x27;t find any that would allow linking to a specific word, phrase or image.<p>So failing to find what I need, I wrote my own thing: https:&#x2F;&#x2F;github.com&#x2F;iafan&#x2F;LinkToSelection<p>Can&#x27;t believe I&#x27;m the only one who thought about this — it seems to be super-useful for any documentation pages. Do you know of other implementations?

2 comments

tonyleabout 9 years ago
Not many javascript stuff comes to mind, but you might find more implementations if you search for a specific problem you were trying to solve. The closing javascript thing that comes to mind is the letmegooglethatforyou site, an extreme way to point out the search button.....<p>From a personal point of view, Sometimes I would just email myself a link to a webpage if I wanted to view it later on mobile or vice versa.<p>In technical support over email, I used to send customers a link to a kb article or a pdf and a page number. I never had to go beyond something along the lines of, here is a link, you forgot to do step 4 or follow the instructions under the known resolution section.<p>From a bug reporting point of view, Most people would send a picture and send the dropbox link over slack&#x2F;email. Dropbox has a little popup with the link to the image after taking a screenshot so it is very easy and fast.<p>It reminds me of Onenote and Evernote feature to copy snippets from a webpage, though I never tried to share the content.<p>While not directly similar, The code for searching for specific parts of a webpage seems similar to some web scraping solutions. Ie, here is a webpage, I want to scrape this selection for all similar pages,etc.
评论 #11250559 未加载
accordionclownabout 9 years ago
related: &gt; <a href="https:&#x2F;&#x2F;medium.com&#x2F;the-bower&#x2F;lets-please-use-hashtag-terms-to-create-_arbitrary_-deep-links-f9185d5da2f0#.z3h36b4w3" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;the-bower&#x2F;lets-please-use-hashtag-terms-t...</a>
评论 #11250582 未加载