News for hackers. Stuff that matters.
Re:Linking to Text Fragments with a Bookmarklet by xnx on Thursday September 18, 2025 @01:09PM (#45292208)
As pointed out on the page, the bookmarklet functionality is redundant to built-in context menu feature.
Re:Linking to Text Fragments with a Bookmarklet by crtasm on Thursday September 18, 2025 @01:40PM (#45292622)
Firefox did not have the menu item for me, I had to go into about:config dom.text_fragments.create_text_fragment.enabled
Re:Linking to Text Fragments with a Bookmarklet by throwaway81523 on Thursday September 18, 2025 @03:00PM (#45293613)
Doesn't appear supported in Firefox 128 LTS. No highlighting whatever I do. Thanks though, maybe it turns up in some later version.
Re:Linking to Text Fragments with a Bookmarklet by extra88 on Thursday September 18, 2025 @08:02PM (#45296479)
Text fragment linking was added in Firefox 131. Firefox 140 is the newest Extended Support Release (ESR) so it can follow such links but I don't know if the context menu has the option to create them.
Re:Linking to Text Fragments with a Bookmarklet by ulrischa on Thursday September 18, 2025 @02:01PM (#45292855)
The implementation is not very good because you can not copy the link generated from the alert. Use this to copy to clipboard: https://gist.github.com/ulrischa/405b93646a0114986575000dcc0...
Re:Linking to Text Fragments with a Bookmarklet by aalukabi on Thursday September 18, 2025 @02:23PM (#45293161)
You are awesome, I came to highlight it and there is already the answer. Appreciated.
Re:Linking to Text Fragments with a Bookmarklet by privatelypublic on Thursday September 18, 2025 @02:44PM (#45293453)
In windows it should be ctrl+c like always for alert()s- even if the UI doesn't show it. Unless "modern" UI has broken that feature.
Re:Linking to Text Fragments with a Bookmarklet by johnnymellor on Thursday September 18, 2025 @04:17PM (#45294460)
This would be useful in Chrome for Android (which doesn't yet have this feature built-in), but activating bookmarklets on Android (via https://paul.kinlan.me/use-bookmarklets-on-chrome-on-android...) clears the text selection. So instead I've put together an alternative bookmarklet that lets you select the text to link to after activating the bookmarklet: https://gist.github.com/johnmellor/ef5ecf555f28b324b045e0c93...