GoogleChromeLabs/link-to-text-fragment

Can I get the link to selection in code?

eduOS opened this issue · 1 comments

eduOS commented

The link can be copied into the clipboard once I hit the copy link to highlight in the context menu, but I wonder if I can get the link in dev console? How can I get it?

You can fork the extension code and log the URL to the clipboard here:

const copyToClipboard = (url, selection) => {