Can the real Google URL, please stand up?
February 28th, 2012I am so bleeping sick of Google's trackback and ad URL monetization nowadays. Gah.

When you get a list of results from Google now, instead of having clickable links to the URLs that the search engine points at, I get these:
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=10&ved=0CH8QFjAJ&url=http%3A%2F%2Fyourseosucks.com%2F2010%2F02%2Flack-of-available-google-profile-usernames-custom-urls%2F&ei=16dNT4uSKY7YiALi47SwBw&usg=AFQjCNFvxDxV6l5fmWnHndV7ZElWjUoXgQ
Reading around on the web, I found this link that has on it a really small awesome Perl hack that uses the CGI module to strip out the real URL from google.
So I created a simple script called real_goog_url based on that hack:
% cat $HOME/bin/real_goog_url
#!/usr/bin/env perl
use CGI;
MAIN:{
$p = CGI->new($ARGV[0]);
print $p->param('url');
print "\n";
}
I can use this script like so to get the real Goog url now!
% $HOME/bin/real_goog_url "http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=10&ved=0CH8QFjAJ&url=http%3A%2F%2Fyourseosucks.com%2F2010%2F02%2Flack-of-available-google-profile-usernames-custom-urls%2F&ei=16dNT4uSKY7YiALi47SwBw&usg=AFQjCNFvxDxV6l5fmWnHndV7ZElWjUoXgQ"
http://yourseosucks.com/2010/02/lack-of-available-google-profile-usernames-custom-urls/
Yay!

