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

google garbage icon new   How To Copy Crap Free URLs From Googles Search ResultsStop 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.

google garbage before   How To Copy Crap Free URLs From Googles Search Results

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:

google garbage chrome   How To Copy Crap Free URLs From Googles Search Results

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:

google garbage after   How To Copy Crap Free URLs From Googles Search Results

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!

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

If you have any questions related to what's mentioned in the article or need help with any computer issue, ask it on MakeUseOf Answers—We and our community will be more than happy to help.

39 Comments -

GrrGrrr

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

Justin Pot

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.

Sebastian Hadinata

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

memo1288

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!

Abhilash Bingi

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

Ram

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}})();

Justin Pot

I’ll have to try this out. thanks!

mike

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.

Kashif Maqsood

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

Justin Pot

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

Pax

Opera has two different add-ons for these named:

“No Google Search Redirect”
“Remove Google Redirects”

CashJournals.com

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

memo1288

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.

Justin Pot

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

Oliver Clevont

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

Sebastian Hadinata

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.

James Graham

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.

Justin Pot

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.

Ashwin Ramesh

Cool! Thanks for sharing!

Noman Fayez

what about IE and opera?

Justin Pot

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

Pax

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.

Pax

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

susendeep dutta

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.

Dan Nieman

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

Edgar Meixueiro

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

Emmanuel Olalere

Nice tip, shared!

Jym

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

David Wosnitza (@_druu)

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

roland

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

Justin Pot

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

roland

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

Justin Pot

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.

roland

Sorry, missed the draggin part… Works!

Brian

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

Mr.Gurgle

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.

John Prokos

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

Justin Pot

Great tip.