Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 8, 2012, 04:13 AM   #1
iEdd
macrumors 68000
 
iEdd's Avatar
 
Join Date: Aug 2005
Location: Australia
Send a message via AIM to iEdd
Safari History Problem with Google Searches

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&rc...5NWPwu6m4yfu7w
instead of
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.
iEdd is offline   0 Reply With Quote
Old Feb 8, 2012, 04:19 AM   #2
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by iEdd View Post
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&rc...5NWPwu6m4yfu7w
instead of
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.
GGJstudios is offline   0 Reply With Quote
Old Feb 8, 2012, 04:26 AM   #3
iEdd
Thread Starter
macrumors 68000
 
iEdd's Avatar
 
Join Date: Aug 2005
Location: Australia
Send a message via AIM to iEdd
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 is offline   0 Reply With Quote
Old Feb 9, 2012, 07:24 PM   #4
iEdd
Thread Starter
macrumors 68000
 
iEdd's Avatar
 
Join Date: Aug 2005
Location: Australia
Send a message via AIM to iEdd
Solved

For anyone with this same problem, there is a solution out there:
http://ask.metafilter.com/201154/Goo...Safari-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!
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-02-10 at 11.22.26 AM.png
Views:	172
Size:	76.8 KB
ID:	323731  
iEdd is offline   2 Reply With Quote
Old Feb 9, 2012, 07:41 PM   #5
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by iEdd View Post
For anyone with this same problem, there is a solution out there:
And thank you for finding and posting this! This has been a pain in the browser for far too long!
GGJstudios is offline   0 Reply With Quote
Old Jan 13, 2013, 09:50 AM   #6
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
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
__________________
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
ArtOfWarfare is offline   0 Reply With Quote
Old Feb 21, 2013, 04:47 PM   #7
bkpr
macrumors member
 
Join Date: Apr 2007
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?
bkpr is offline   0 Reply With Quote
Old Feb 21, 2013, 05:40 PM   #8
iEdd
Thread Starter
macrumors 68000
 
iEdd's Avatar
 
Join Date: Aug 2005
Location: Australia
Send a message via AIM to iEdd
Yeah, same here. Frustratingly just starting to accept that Safari is a broken browser.
iEdd is offline   0 Reply With Quote
Old Apr 28, 2013, 01:59 AM   #9
RaCha
macrumors newbie
 
Join Date: Apr 2013
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 www.leanbyte.com/historywasher.
RaCha is offline   0 Reply With Quote
Old Apr 28, 2013, 07:09 AM   #10
elppa
macrumors 68040
 
elppa's Avatar
 
Join Date: Nov 2003
Quote:
Originally Posted by iEdd View Post
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.
elppa is offline   1 Reply With Quote
Old May 5, 2013, 03:42 AM   #11
iEdd
Thread Starter
macrumors 68000
 
iEdd's Avatar
 
Join Date: Aug 2005
Location: Australia
Send a message via AIM to iEdd
Thanks for the tip, elppa.

Unfortunately, it only seems to fix it when you:
• Go to 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?
iEdd is offline   0 Reply With Quote
Old Jun 3, 2013, 10:32 PM   #12
Ramashalanka
macrumors regular
 
Join Date: Dec 2008
Location: Lanka Ravi Shanka
The gdirectlinks Safari Extension works for me in Safari 6.0.4.
Ramashalanka is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
New ADs on Safari Google searches in iOS spicynujac iOS 6 2 Aug 24, 2014 11:31 PM
Does Time Machine keep Safari history if Safari set to automatically delete history? Siderz Mac Basics and Help 1 Feb 2, 2014 02:48 PM
iPad 2 Safari history problem giocav89 iPad Tips, Help and Troubleshooting 2 Apr 15, 2013 04:53 PM
Suddenly my Safari Google searches find French sites! DennyL Mac Applications and Mac App Store 5 Nov 22, 2012 11:37 AM
Possible to remove entries in Google searches? T'hain Esh Kelch Mac Applications and Mac App Store 1 Aug 5, 2012 11:37 AM

Forum Jump

All times are GMT -5. The time now is 11:11 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC