This is a macro by @ComplexPoint.
I was looking for it on the forum and didn't find it, so I'm reposting.
The macro is very similar to this one:
Copy link under cursor in Safari or Chrome as Markdown
But it does NOT reformat the link (or links) as Markdown – it returns plain text.
-Chris