Skip to content

Instantly share code, notes, and snippets.

@pansapiens
Created July 17, 2012 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pansapiens/3127897 to your computer and use it in GitHub Desktop.
Save pansapiens/3127897 to your computer and use it in GitHub Desktop.
Ezproxy URL munging bookmarklet
javascript:(function(){var%20url_regex=/(https?:\/\/(?:[-\w\.]+)+(?::\d+)?)((?:\/([\w/_\-\.]*(\?\S+)?)?)?)/,url_results=url_regex.exec(document.location),new_url%20=%20url_results[1]+".proxy.com"+url_results[2];window.location=new_url;})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment