HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
WICG
scroll-to-text-fragment
HTML2020–2024
WICG / scroll-to-text-fragment

scroll-to-text-fragment

Proposal to allow specifying a text snippet in a URL fragment

13Distinct people
15Mentions
0Explicit recommenders
613GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Proposal to allow specifying a text snippet in a URL fragment

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year15 dated mentions

Observed mentions: 2020-02-21 16:12:42 UTC to 2024-10-25 11:33:06 UTC.

02468102020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 9 mentions; 2 submissions, 7 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC927
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC202
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC202
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC202

What Hacker News says

15 sources
Is there a specified / supported way to include other parameters in the URI fragment if the fragment part of the URI starts with :~:text=? https://example.com/page.html#:~:text=[prefix-,]textStart[,textEnd][,-suffix] https://example.com/page.html#:~:text=... https://example.com/page.html#:~:text=...&param2=two&:~:param3=three w3c/web-annotation#442: "Selector JSON to IRI/URI Mapping: supporting compound fragments so that SPAs work" (2019): https://github.com/w3c/web-annotation/issues/442 WICG/scroll-to-text-fragment#4: "Integration with W3C Web Annotations" (2019): https://github.com/WICG/scroll-to-text-fragment/issues/4#iss...
In Smarter Than 'Ctrl+F': Linking Directly to Web Page Content
"Do you like the browser bookmark manager?" https://news.ycombinator.com/item?id=24511454 : > Things I'd add to browser bookmark managers someday: > - Support for (persisting) bookmarks tags. From the post re: the re-launch of del.icio.us: https://news.ycombinator.com/item?id=23985623 >> "Allow reading and writing bookmark tags" https://bugzilla.mozilla.org/show_bug.cgi?id=1225916 >> Notes re: how [browser bookmarks with URI|str* tags] could be standardized with JSON-LD: https://bugzilla.mozilla.org/show_bug.cgi?id=1225916#c116 * *** WICG/scroll-to-text-fragment "Integration with W3C Web Annotations" https://github.com/WICG/scroll-to-text-fragment/issues/4 *** W3C Web Share API & W3C Web Target API https://news.ycombinator.com/item?id=30449716
In Ask HN: Why are bookmarks second class citizens in browsers?
This is called ScrollToTextFragment. See https://github.com/WICG/ScrollToTextFragment I think they just started doing this a few hours ago. I only noticed it in the "Featured Snippet" box. Edit: > I was surprised because Quora can’t know what the search result looked like and so doesn’t know which part of the text to highlight. Did Google at some point stop sending referer headers that include the query? The last time I checked (~10 years ago, admittedly), they did, which was often collected for analytics. Regardless, it's the browser doing the highlighting in this case, not the site itself.
In Tell HN: Google uses a Chrome-specific feature to highlight text on any website
The github issue has more actual examples. The important bit is the "looking for lower-on-the-page resources being requested." bit. You can't necessarily tell anything from that lone DNS request. But after loading the page, the user's browser will go on to send requests for elements on the page, and anything JS wants to grab based on position, which can be a channel for information. Example: 99% of your employees' DNS requests to the company health portal are followed by DNS requests to the image CDN a few milliseconds later. However 1 specific request to FakeCompanyHealth.com is immediately followed by a DNS request to MayoClinic.com, because it turns out the web page dynamically loads an iframe to contact the Mayo Clinic once you scroll to the Cancer subsection. You could then assume based on timing that this user clicked a cancer-speci
Read the rest
fic anchor link. A more realistic example IMO is the twitter friend leak one provided in the Github thread. Send an anchor like "twitter.com#:~:text=@handle" and see if their page-load matches the standard twitter homepage load, or did their browser scroll them halfway down the page and load additional stuff? If so, you can assume these 2 users are friends., https://github.com/WICG/ScrollToTextFragment/issues/76
In Chrome deploys deep-linking in latest build despite privacy concerns

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.