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.

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

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

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

  • I'd like an easy way to copy it to the clipboard. – Marcus Leon Dec 2 '11 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.