Created
August 20, 2013 01:46
-
-
Save hanigamal/6276231 to your computer and use it in GitHub Desktop.
Google search URL cleaner ;)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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