How To Copy Crap-Free URLs From Google’s Search Results

copy links from googleStop getting a garbled mess every time you try to copy a link from Google search results. Install one simple plugin or userscript and solve this problem entirely.

Google’s search page is a collection of links. Try to copy those links, however, and you end up with a series of seemingly random letter and numbers. Google uses these far-longer-than-necessary URLs to help track who is clicking which searches, which in turn helps make search results better, but they can be downright annoying when you need to copy and paste a link from Google for a friend. They’re ugly:

http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CEwQFjAA&url=http%3A%2F%2Fwww.makeuseof.com%2F&ei=wSArUPj0E5Gu8QSd1IGYDg&usg=AFQjCNET_hI9VptfwU-R4oSaJjjI-f0jgA&cad=rja

That’s just a link to MakeUseOf, believe it or not.

Some people dislike this because they don’t want to be tracked – it’s a point that’s worth discussing, but I won’t get into it now. I’m simply annoyed with these URLs. Here’s why.

The Scenario

You’re looking for a particular article or website to share with a friend; maybe the single least useful thing Justin Pot has written. You type relevant search terms – Nyan Cat progress bar Justin Pot – and hit enter. (You realize, of course, that you don’t need to hit “enter” because of Google autofill, but you’re a longtime Google user and a stickler for tradition, so you hit enter anyway. You’re awesome like that and we all notice.)

Anyway, you’re ready to copy the result of your search when you notice, at the bottom of your browser, the garbled mess of a URL Google has turned this into.

copy links from google

Your entire body instantly fills with rage. Sure, you could copy that link – it will still work – but it’s ugly. And sure, you could simply click the link, wait for the page to load and copy the URL from the address bar as soon as you can.

But you don’t have time for that nonsense. Not now. You’re in a hurry.

Calm down. It hasn’t always been like this. It doesn’t need to be like this.

Let’s fix this.

The Solution

Are you a Firefox user? Good. All you need to do to solve this problem is install the Google/Yandex search link fix and you’re good to go. Easy.

Are you a Google Chrome user, or a Firefox user who prefers Greasemonkey scripts to extensions? Don’t track me Google is a script for exactly this purpose.

Installing on Firefox with Greasemonkey is simple: just click “Install” and you’re good to go.

Chrome users will need to do some extra work, because Google recently changed the way extensions and scripts not offered in the Chrome Web Store can be installed. You’re going to need to click the “Install” button on the script’s page; doing so will download the script. Open the “Extensions” page in Chrome’s settings, then browse to the downloaded script in your file browser. Drag the script to the Extensions page and you’ll see a dialogue that looks like this:

copy google links

You’ve now installed the plugin. This used to be easy, and I’m annoyed, but let’s save that for another article.

The Result

Still with me? Great. Let’s type that same search again and see how our URL looks:

copy links from google

Fan-friggin-tastic! Copy that URL, secure in the knowledge that all URLs you copy from Google will now be garbage-free. Good job.

The Conclusion

It occurs to me this might be the sort of problem only bloggers have: we spend a lot of our time copying links from Google so we can use them in articles.

I tend to write about tools I myself find useful, but I’m curious: does anyone else find this useful? Let me know what you used it for in the comments below. Thanks!


MakeUseOf Recommends

Justin Pot

Justin Pot is a blogger based in Boulder, Colorado who loves technology, people and nature. He tries to enjoy all three whenever possible. Check out JustinPot.com or, if you like audio, you can listen to Justin, alongside James and Dave, on Technophilia, earth's favorite Technology podcast.

The comments were closed because the article is more than 180 days old.

If you have any questions related to stuff mentioned in the article or need help with any computer issue, just ask it on MakeUseOf Answers.

Hide 39 Comments

  • GrrGrrr August 22, 2012
    0 likes

    WOW, now I could just get the link and save it for future use.

    Never understood before why these search links are so ugly..lol

    | Like
    • Justin Pot August 23, 2012
      0 likes

      They’re ugly so Google can track who is clicking what. It’s how they improve their search results over time. This kind of breaks that, so only use if it’s important to you.

      | Like
      • Sebastian Hadinata August 23, 2012
        0 likes

        I never know that ugly link is used to track what user’s click. Well, now I know :D

        | Like
  • memo1288 August 22, 2012
    0 likes

    This will be very helpful when trying to copy a link to a pdf file. These links usually are too long and get truncated in the search results page, and clicking one of them downloads the file but doesn’t show the address, even when opening in a new tab (it only shows that long Google address).
    I will give it a try. Thanks for the info!

    | Like
  • Abhilash Bingi August 22, 2012
    0 likes

    Or if you still want to enjoy personalized search results offered by Google (If that’s your thing) you can you a url shortener, which will have much smaller links you can create from a right click to store or share.
    Something like https://chrome.google.com/webstore/detail/iblijlcdoidgdpfknkckljiocdbnlagk for chrome or
    https://addons.mozilla.org/en-us/firefox/addon/cutyfox-url-shortener-googl-is/ for firefox

    | Like
  • Ram August 22, 2012
    0 likes

    A Javascriptlet bookmarklet “Zap Redirects” does this effectively:

    javascript:(function(){var%20k,x,t,i,j;%20for(k=0;x=document.links[k];k++){t=x.href.replace(/[%]3A/ig,’:').replace(/[%]2f/ig,’/');i=t.lastIndexOf(‘http’);if(i>0){%20t=t.substring(i);%20j=t.indexOf(‘&’);%20if(j>0)t=t.substring(0,j);%20x.href=/https?\:\/\/[^\s]*[^.,;'%22>\s\)\]]/.exec(unescape(t))[0];%20}%20else%20if%20(x.onmouseover&&x.onmouseout){x.onmouseover();%20if%20(window.status%20&&%20window.status.indexOf(‘://’)!=-1)x.href=window.status;%20x.onmouseout();%20}%20x.onmouseover=null;%20x.onmouseout=null;%20}})();

    | Like
    • Justin Pot August 23, 2012
      0 likes

      I’ll have to try this out. thanks!

      | Like
  • mike August 22, 2012
    0 likes

    Great add-on. I send URL’s from Google searches to friends (and to myself – at home). A clean URL shows where it’s actually going to and reduces the thought that it’s really some spammer’s hidden agenda.

    | Like
  • Kashif Maqsood August 22, 2012
    0 likes

    What about Opera Browser? How to do it in opera?

    | Like
    • Justin Pot August 23, 2012
      0 likes

      I haven’t found a way to do this in Opera. Let me know if you do, okay?

      | Like
    • Pax August 23, 2012
      0 likes

      Opera has two different add-ons for these named:

      “No Google Search Redirect”
      “Remove Google Redirects”

      | Like
  • CashJournals.com August 22, 2012
    0 likes

    I normally just click through and copy the URL from the address bar. But now there is an alternative. Thanks.

    | Like
  • memo1288 August 22, 2012
    0 likes

    This will be useful when copying links for pdf files. Usually these files have long URLs that get truncated in the search results page, and clicking the link downloads the fiile without showing the address, even when you open them in a new tab (it only shows that long Google URL).
    I will give this a try. Thanks for sharing.

    | Like
    • Justin Pot August 23, 2012
      0 likes

      No problem! Let me know how it works for you, okay?

      | Like
  • Oliver Clevont August 23, 2012
    0 likes

    Try the BreakItDown Firefox extension to shorten URLS:
    https://addons.mozilla.org/en-us/firefox/addon/break-it-down/

    | Like
  • Sebastian Hadinata August 23, 2012
    0 likes

    Awesome tips! This will surely come in handy when I wanted to share a google link to a friend, I don’t need to open the website first to copy the real link and it look neats this way.

    | Like
  • James Graham August 23, 2012
    0 likes

    What about us poor saps that are stuck using IE at work? I hate clicking the back button because it keeps getting caught on these stupid links.

    | Like
    • Justin Pot August 23, 2012
      0 likes

      You could try a portable version of Chrome or Firefox:

      http://portableapps.com/

      Or you could use the code above to make a bookmarklet. You’ll need to click it everytime but it works.

      | Like
  • Ashwin Ramesh August 23, 2012
    0 likes

    Cool! Thanks for sharing!

    | Like
  • Noman Fayez August 23, 2012
    0 likes

    what about IE and opera?

    | Like
    • Justin Pot August 23, 2012
      0 likes

      Can’t find anything specifically for them; sorry. You can try the “zap redirects” bookmarklet above – simply create a new bookmark and use the code as your “address”. Click it and the junk will be removed (though you will need to use it each time you intend to copy a link).

      | Like
    • Pax August 23, 2012
      0 likes

      Opera has two different add-ons for these named: “No Google Search Redirect”
      and “Remove Google Redirects” over at their main add-ons site.

      Don’t know about IE.

      | Like
    • Pax August 23, 2012
      0 likes

      I came here to see if you would mention the ‘Google/Yandex search link’ extension and was presented with an entertaining and funny article!

      | Like
  • susendeep dutta August 23, 2012
    0 likes

    This extension (Google/Yandex search link fix) interferes with the login of Google in any MUO page i.e. doesn’t allows to connect via Google.So,I’d to uninstall it and using the script-Don’t track me Google.

    This article has helped me save some bandwidth cost and now I can copy links of some YouTube videos without opening them.

    | Like
  • Dan Nieman August 23, 2012
    0 likes

    Excellent post. I am a librarian and I put together link lists and recommendations. This is something to try. Thanks!

    | Like
  • Edgar Meixueiro August 23, 2012
    0 likes

    I don’t want to use more extensions, but some are necessary.

    | Like
  • Emmanuel Olalere August 25, 2012
    0 likes

    Nice tip, shared!

    | Like
  • Jym September 1, 2012
    0 likes

    =v= I increasingly use http://duckduckgo.com/ for searches, to avoid this stuff (and other misfeatures). I daresay that helps Google’s search results even less. I’ll install this for the times I do use Google.

    | Like
  • David Wosnitza (@_druu) October 16, 2012
    0 likes

    I maybe a bit late for this, but if you’re not a fan of Installing extensions, here’s a little bookmarklet that does the same trick.

    https://gist.github.com/3901226

    Cheers

    | Like
  • roland October 25, 2012
    0 likes

    I don’t get this solution going for chrome, google refuses me to do the installl:

    “Adding extensions from other websites
    We’re constantly looking out for ways to make your browsing safer. To that end, we recently changed the way you add extensions that are not in the Chrome Web Store to your browser. Previously, any website could prompt you to add an extension into your browser. In the latest version of Google Chrome, you must explicitly tell Chrome that you want to install these extensions by adding them through the Extensions page.

    Why the change?

    To help keep you safe on the web, we have started analyzing every extension that is uploaded to the Web Store and take down those we recognize to be malicious. Unfortunately, we don’t have the ability to take down malicious items promoted on other websites. For instance, online hackers may create websites that automatically trigger the installation of malicious extensions. Their extensions are often designed to secretly track the information you enter on the web, which the hackers can then reuse for other ill-intended purposes.

    The updated installation process prevents websites from automatically triggering unauthorized extension installations and gives you more control over the extensions you’re adding to Chrome.”

    | Like
    • Justin Pot October 25, 2012
      0 likes

      There are instructions above for getting around this, and they work. Read the installation section again! :)

      | Like
      • roland October 30, 2012
        0 likes

        The point is I don’t see the script appearing on the extensions page…

        | Like
        • Justin Pot October 30, 2012
          0 likes

          Did you download the file and drag it to the open extensions page? Because I just tested this on the most recent stable version of Chrome and that still works.

          | Like
          • roland October 30, 2012
            0 likes

            Sorry, missed the draggin part… Works!

            | Like
  • Brian October 26, 2012
    0 likes

    When I need to share an URL, I just use Bing. I can’t be bothered with this on Chrome.

    | Like
  • Mr.Gurgle November 12, 2012
    0 likes

    Thanks but it doesn’t seem to work with chrome anymore. Oh well I found another way using chrome, just click on click Ctrl+Shift+I then you’ll see a magnification glass-icon in the bottom toolbar, click that, then left-click on the link you’d like to open or copy paste.
    Now you can see the HTML-code for the link, and it should look like this: <a href="http://www.supersecret.com/google-hidding&quot; ….

    Left-click on that link to open the page directly without going through google or right click and copy paste it.

    | Like
  • John Prokos January 22, 2013
    0 likes

    You can install these scripts on Safari using a Safari extension called Ninjakit.

    | Like
    • Justin Pot January 22, 2013
      0 likes

      Great tip.

      | Like