Live data from Hacker News

Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

alfy.blog

131–140 of 145 posts

Re: Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

#131

With a addon this is much more usable, not sure why there isn't a selection-to-text-fragment-link functionality builtin to Firefox...(same for other browsers?) https://addons.mozilla.org/firefox/addon/text-fragment/

Support for the feature itself was only added in a very recent mainline firefox release. Like, less than one or two months ago.

https://addons.mozilla.org/en-US/firefox/addon/link-to-text-... extension for creating links

Re: Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

#132
post #121

Earlier quoted context omitted.

It's not difficult for you and me, sure. Try explaining you need to add a tilde, colon, the work text, equals sign then the text you want to the end of the URL.

Why can't the browser do all of that when you create a link to the selection?

It would have to, kind of my point. Either the browser or someone would have to create some javascript widget to do it.

Re: Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

#133

In all honesty, I've hated this feature with a passion ever since it appeared. If it was simply a matter of being used in the way outlined in the article, when someone creates a a link that references a particular piece of text, then fine, someone has deliberated intended the link to behave like that. And then we have the lovely folk at Google search... who think it's fun to drag my attention off to a random part of…

Isn't the reason it highlights that from search because that was your search term? That's what I've seen, in which case I prefer that it does draw my attention to that string

Re: Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

#134
post #132

Earlier quoted context omitted.

Why can't the browser do all of that when you create a link to the selection?

It would have to, kind of my point. Either the browser or someone would have to create some javascript widget to do it.

It does. Try it.

Re: Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

#135

Earlier quoted context omitted.

Isn't Web Platform Incubator Community Group the group browsers makers formed because the W3C was being too slow and then largely overtook the W3C in terms of relevance?

No, I would say you were describing WHATWG and their HTML5 specification (now called the HTML Living Standard) https://en.wikipedia.org/wiki/WHATWG The Web Platform Incubator Community Group is "a lightweight venue for proposing and discussing new web platform features" within the W3C https://www.w3.org/community/wicg

Oh yeah I got that mixed up. Thanks.

Re: Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

#137
post #99

I built something like this for The New York Times and it was one of the more fun projects I did there. The thing I really hoped this "new" version would account for is when text changes and having links survive minor edits/changes. Perhaps I missed it and it does. - https://github.com/NYTimes/Emphasis - https://open.nytimes.com/emphasis-update-and-source-6ffac5e6... (2011)

Wow, this is interesting to see. Thanks for sharing. This was long before any standardization in this area

Re: Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

#138
post #11

I always wished something to point at typos in websites... thanks for that

E.g. https://alfy.blog/2024/10/19/linking-directly-to-web-page-co...

Thank you for the highlight, I will fix it so that your link no longer work

Re: Smarter Than 'Ctrl+F': Linking Directly to Web Page Content

#139
post #31

Is it just me or whenever I open a link with a text fragment, the page is loaded just fine but it takes one or two seconds to actually scroll down to the highlighted text? Usually in Chrome and when visiting sites that are not 100% pure text (e.g., bloated Confluence docs)

It is very annoying, yes.

Because of this bloat in Confluence, we actually just use it for editing and serve the content in a more lightweight way using the API and our own templates.

Post reply on HN