5

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.

3
  • 2
    By title, I am assuming you mean the title="" attribute in the a element. Is this correct?
    – iglvzx
    Dec 2, 2011 at 19:20
  • @iglvzx, yes, that's it Dec 2, 2011 at 19:53
  • 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
    Dec 3, 2011 at 9:26

3 Answers 3

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.

1
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.

0
0

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

2
  • 2
    I'd like an easy way to copy it to the clipboard. Dec 2, 2011 at 19:53
  • Eleven years later this need still exists and is still unmet apparently. May 5, 2022 at 17:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .