real example https://www.howtogeek.com/726473/how-to-create-a-link-to-selected-text-in-chrome/#:~:text=When%20the%20recipient%20clicks%20the%20link
The URL construction looks straightforward to guess but I wonder if there are any gotchas.
I wonder if there is a standard for this or is it or Chrome specific? Since itâs done with a fragment itâs likely harmless to any browsers that donât support it.
A PopClip extension for this might be handy. (tweet)
This technique doesnât seem to work in Safari on iOS (at least on my iPhone) â your example URL just opens the page at the top.
But combined with Choosy â or even just a chrome:// url handler, if that works out of the box â this would be amazing.
To try to explain: If you use Chrome, and you add something to end of any URL in Chrome, you can link not just to the top of the page, but to the place on the page where certain text appears. The part you add to the end of the URL is the text youâre linking to (but âencoded,â so spaces and other characters that donât work on URLs are turned into %20 or something similar).
Thanks for that @rkaplan and everyone!
I hadnât heard of this Chrome feature till yesterday when I saw a tweet asking for a PopClip extension to do the same thing. Glad I used the forum to flesh it out⊠I like how it can be a kind of interactive notebook.
Thank you for sharing this extension snippet. Unfortunately, it seems that the popclip.context.browserUrl feature does not work with the ARC Browser. I tried using the provided extension snippet, and while it works perfectly with other supported browsers, it does not fetch the URL when using ARC Browser.
Is there any possibility to add support for ARC Browser in the future? It is my preferred browser for various reasons, and having PopClip fully functional with it would greatly enhance my workflow.
Thank you for your continuous efforts in developing and improving PopClip. It is a fantastic tool that has been incredibly helpful in my daily tasks.
Unfortunately, unlike Chrome, Safari and some other browsers, Arc does not offer an AppleScript interface that allows PopClip to find out the URL of the current foreground tab. If Arc were to add a suitable interface then I could add support for it in PopClip.
Update 23 Oct 2025: Works in Arc now with PopClip 2025.9.1.
I am looking for a way to associate a link with a keyword of text. This is a feature available in some browsers, but not yet universal, although this is democratizing.
PopClip already uses AppleScript similar to this internally to retrieve the URLs from browsers.
But the unsupported browsers donât have an AppleScript interface, which is why they are unsupprted.
(PopClip doesnât use the the âL âC method for Firefox or LibreWolf though â that is nasty! OK for a rough DIY script but having the URL bar getting selected all the time would not fly with users)
I donât know anything about it, but of course I suspect that the code isnât the best.
We need to find a solution for FF, that would be cool Then I have a plugin on FF that allows me to do it but I donât know if itâs really a good thing âŠ