Copy title attribute from <a title=...> to clipboard in Chrome

5

1

On Twitter, users use short URLs (ie: http://t.co/DPbRAjVM).

The title attribute of the <a href="..." title="..."> tag is the actual URL.

Is there a Chrome extension that you can use to copy the title to the clipboard which you can then paste into your browser window? I am looking to get the actual URL and not click through to the URL shortener service.

Marcus Leon

Posted 2011-12-02T19:14:57.870

Reputation: 2 323

2By title, I am assuming you mean the title="" attribute in the a element. Is this correct? – iglvzx – 2011-12-02T19:20:13.220

@iglvzx, yes, that's it – Marcus Leon – 2011-12-02T19:53:37.963

I guess there's even a better solution: an extension or user script that actually changes the href for you, after the page has loaded! – Arjan – 2011-12-03T09:26:25.917

Answers

1

You can use this extension, if you are using Google Chrome: https://chrome.google.com/webstore/detail/unshortenit/lgmkbhnfldpklfakbcopgkkhonofficm

This extension if you are using Firefox: https://addons.mozilla.org/en-US/firefox/addon/unshortenit/

All you got to do is, right click on the URL that you want to unshorten and then select the option "Unshorten Link". That's it. You will get the unshortened URL, which shows the original location. Copy the URL to the clipboard from there.

I tried the Chrome extension, and am pretty sure that the Firefox extension also works similar to it.

pramdev

Posted 2011-12-02T19:14:57.870

Reputation: 391

1

Link for Chrome extension not working anymore ,I just found this other extension: https://chrome.google.com/webstore/detail/unshortenlink/gbobdaaeaihkghbokihkofcbndhmbdpd Works well, when you click on short links, new page opened with real url. You have the choice to go there or not.

– bertrandg – 2016-03-04T16:04:50.927

1

Looking through the available Google Chrome extensions related to expanding URLS, they all seem to replace the title attribute, instead of the text in the <a> element. So, to expand on @MasterMorbi's answer, I have devised a workaround.

Short URL

  • Right click the link, and select Inspect element.

    Inspect element

  • The Developer Tools will pop-up, and the link's element (<a>) will be highlighted.

    Developer tools

  • Double click to the right of title=" in the element to select the URL.

    Title attribute

  • Press CTRL+C to copy the URL, and then press F12 to close the Developer Tools.

iglvzx

Posted 2011-12-02T19:14:57.870

Reputation: 21 611

0

If you're looking for the title attribute just press CTRL + U and then search for the url in the code tab.

siannone

Posted 2011-12-02T19:14:57.870

Reputation: 135

I'd like an easy way to copy it to the clipboard. – Marcus Leon – 2011-12-02T19:53:49.663