Wednesday, August 16, 2023

#:~:text=

A nifty way to direct a reader to text on a webpage: add #:~:text= after the URL, followed by whatever text you want to highlight.

I did just that in a post on Monday, which includes a link with this URL:

https://mleddy.blogspot.com/2022/02/seven-movies-five-seasons.html#:~:text=Parallel
%20Mothers%20(dir.%20Pedro%20Almodóvar,
%202021).


(A space between words automatically becomes %20.)

The link that results goes to a few sentences about the Pedro Almodóvar film Parallel Mothers. Now there’s need to scroll through the post to find those sentences.

Am I the last person blogging to know about #:~:text=? It appears to have begun as a Chrome feature called Scroll to Text Fragment. It works in some browsers, not all. I find that it works in Epic, Orion, Min, and Safari, but not in Brave. Strange, because Brave is based on Chromium.

comments: 0