Skip to content

Instantly share code, notes, and snippets.

@pindamonhangaba
Forked from druu/gist:3901226
Created October 16, 2012 19:12
Show Gist options
  • Select an option

  • Save pindamonhangaba/3901319 to your computer and use it in GitHub Desktop.

Select an option

Save pindamonhangaba/3901319 to your computer and use it in GitHub Desktop.
Bookmarklet: Clean up Google's search result URLs
javascript(function(){var links=document.querySelectorAll('a.l'),count=links.length;while(count--){links[count].onmousedown=null;if((/url=/i).test(links[count].href)){links[count].href=decodeURIComponent(links[count].href.match(/url=([a-z0-9\-+%._]+)&/i)[1].replace(/\+/g, ' '));}};})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment