Skip to content

Instantly share code, notes, and snippets.

@druu
Created October 16, 2012 18:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save druu/3901226 to your computer and use it in GitHub Desktop.
Save druu/3901226 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