copy-as-markdown icon indicating copy to clipboard operation
copy-as-markdown copied to clipboard

Copy link doesn't fetch title (on Windows)

Open yorkxin opened this issue 13 years ago • 8 comments
trafficstars

Windows XP

Chrome 17

Reason: there is no info.selectionText because it does not select the text when right-clicking on a link.

yorkxin avatar Mar 01 '12 17:03 yorkxin

When I right click on a link without selecting it, it gives me no title. [(No Title)](https://github.com/chitsaou/copy-as-markdown) Seems to be the same issue, but I'm using linux.

I'm sure there's an Chrome API which you can get this info. For example, right click on a link and Block element from ublock origin will highlight the text.

JayXon avatar Jun 14 '16 01:06 JayXon

Thanks @JayXon, I will take a look at the API. It's been 4 years since this issue was opened, so I believe there are some API changes that can solve this bug!

yorkxin avatar Jun 14 '16 06:06 yorkxin

#55 does not solve this issue.

yorkxin avatar Mar 07 '18 14:03 yorkxin

How about getting the text children out of the DOM when a link has no title attribute?

Anyway, :+1: for the tip with selecting the text 1st.

jhermann avatar Mar 12 '18 17:03 jhermann

This bug still exist in latest Chrome release 70.0.3538.67.

networm avatar Oct 21 '18 07:10 networm

Won’t be supported unless Chrome provides an API on Windows.

If you could check the api document for me it’d be appreciated.

Otherwise please open a feature request to Chromium project.

On Sun, Oct 21, 2018 at 4:58 PM 狂飙 [email protected] wrote:

This bug still exist in latest Chrome release 70.0.3538.67.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chitsaou/copy-as-markdown/issues/1#issuecomment-431647567, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAp8aDp8T3IICfBBlXcAoH-43blC8gXks5unCk-gaJpZM4I04fF .

-- Regards, Yucheng Chuang

yorkxin avatar Oct 21 '18 08:10 yorkxin

Thank you for your reply. I think it is better to close this issue then the others will know this conclusion.

Could you remove this function in context menu on Windows?

networm avatar Oct 21 '18 08:10 networm

Still exists on Linux Ubuntu Kubuntu 18.10 Chromium 72.0.3626.96. And doesn't work in Windows. [(No Title)](https://chrome.google.com/webstore/detail/copy-as-markdown/fkeaekngjflipcockcnpobkpbbfbhmdn?hl=en) Does seem to work on tabs.

Anyone have an alternative?

Edit: workaround is to highlight/select text before right clicking. Then grabs the text. Firefox CUTC extension was much easier.

Finally found it for Chrome: https://chrome.google.com/webstore/detail/copy-url-to-clipboard/miancenhdlkbmjmhlginhaaepbdnlllc/related?hl=en

auwsom avatar Feb 24 '19 22:02 auwsom