Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy link doesn't fetch title (on Windows) #1

Open
yorkxin opened this issue Mar 1, 2012 · 8 comments
Open

Copy link doesn't fetch title (on Windows) #1

yorkxin opened this issue Mar 1, 2012 · 8 comments

Comments

@yorkxin
Copy link
Owner

yorkxin commented Mar 1, 2012

Windows XP

Chrome 17

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

@yorkxin yorkxin added the chrome label Apr 28, 2014
@JayXon
Copy link

JayXon commented Jun 14, 2016

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.

@yorkxin
Copy link
Owner Author

yorkxin commented Jun 14, 2016

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
Copy link
Owner Author

yorkxin commented Mar 7, 2018

#55 does not solve this issue.

@jhermann
Copy link

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

Anyway, 👍 for the tip with selecting the text 1st.

@networm
Copy link
Contributor

networm commented Oct 21, 2018

This bug still exist in latest Chrome release 70.0.3538.67.

@yorkxin
Copy link
Owner Author

yorkxin commented Oct 21, 2018 via email

@networm
Copy link
Contributor

networm commented Oct 21, 2018

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?

@auwsom
Copy link

auwsom commented Feb 24, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants