Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iEdd

macrumors 68000
Original poster
Aug 8, 2005
1,956
4
Has anyone else noticed that if you open Google search results in a new tab/window, the results in your Safari history are displayed as:
http://www.google.com.au/url?sa=t&r...ejD0HTUdvf-7m4hYg&sig2=oCpRGW-s5NWPwu6m4yfu7w
instead of
http://www.wikipedia.org
???

Others also seem to have this issue, some dating back 1-2 years.

One suggestion I read said to turn off Google instant, but that hasn't fixed the problem.

Has anyone fixed this? Or is it time to just admit to ourselves that Safari has been ruined and move on to Chrome already?

I'm using Safari Version 5.1.3 (7534.53.10) in Lion, but had this problem with 5.1 in Snow Leopard too.

Appreciate any help.
Thanks.
 

GGJstudios

macrumors Westmere
May 16, 2008
44,545
943
Has anyone else noticed that if you open Google search results in a new tab/window, the results in your Safari history are displayed as:
http://www.google.com.au/url?sa=t&r...ejD0HTUdvf-7m4hYg&sig2=oCpRGW-s5NWPwu6m4yfu7w
instead of
http://www.wikipedia.org
???
This is because Google adds all the extra "junk" to track information about which search results generate clicks. If you go to the actual page, that information is stripped off, but it's annoying if you want to copy the link directly from the search results page.
 

iEdd

macrumors 68000
Original poster
Aug 8, 2005
1,956
4
Yes, I understand that, but other browsers, like Firefox and Chrome will resolve the redirect and log the history with the final address and appropriate title.

In fact, Safari does this correctly if you open the Google search result in the current tab - which is of no use when I frequently cmd+shift then click out a bunch of results into new tabs.
 

iEdd

macrumors 68000
Original poster
Aug 8, 2005
1,956
4
Solved

For anyone with this same problem, there is a solution out there:
http://ask.metafilter.com/201154/Google-results-arent-recorded-inSafari-history
(You can download a safari extension for .com and .co.uk google there.)

This extension previously didn't work for me, as it isn't setup for google.au. To get it to work, I pasted those 2 lines of javascript:
Code:
var links = document.getElementsByClassName('l');
for(l in links) if (links[l].onmousedown) links[l].removeAttribute("onmousedown");
into a file I called main.js, then setup a Safari extension as in the screenshot shown below. Anyone wishing to make their own for .au (or any other domains can now do so using these settings).

Thankyou nowonmai and tylerkaraszewski of metafilter!
 

Attachments

  • Screen Shot 2012-02-10 at 11.22.26 AM.png
    Screen Shot 2012-02-10 at 11.22.26 AM.png
    76.8 KB · Views: 266

ArtOfWarfare

macrumors G3
Nov 26, 2007
9,566
6,073
YES!

Thank you so much for that plug in!

This page is the final one that will have that (no title) entry in my history :)
 

bkpr

macrumors member
Apr 2, 2007
33
0
Are you having success with this extension with Mountain Lion's Safari (6.0.2)? I wrote about this solution a while back, but since upgrading to Mountain Lion the scrambled URLs are back. I've removed/reinstalled the extension to no avail.

Any ideas?
 

iEdd

macrumors 68000
Original poster
Aug 8, 2005
1,956
4
Yeah, same here. Frustratingly just starting to accept that Safari is a broken browser.
 

RaCha

macrumors newbie
Apr 27, 2013
1
0
Safari 6 Plugin

There's a different plugin called "Hisory Washer" that works in Safari 6 and fixes the issue for all Google searches performed after installing it. Works for me in Safari 6.0.3.

You can download it for free at http://www.leanbyte.com/historywasher.
 

elppa

macrumors 68040
Nov 26, 2003
3,233
151
Yeah, same here. Frustratingly just starting to accept that Safari is a broken browser.

Links no longer have the l class on the results page.

If you change the first line (in the script posted):
Code:
var links = document.getElementsByClassName('l');

to this:
Code:
var links = document.querySelectorAll("h3.r a");

It should work again.
 

iEdd

macrumors 68000
Original poster
Aug 8, 2005
1,956
4
Thanks for the tip, elppa.

Unfortunately, it only seems to fix it when you:
• Go to http://www.google.com (or .com.au)
• Search
• Click a result

If I type the search into the safari search/address bar, then click a result, I still get the garbled history entries. Any ideas?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.