Skip to content

Instantly share code, notes, and snippets.

@marknotfound
Created February 5, 2014 20:16
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save marknotfound/8832135 to your computer and use it in GitHub Desktop.
Save marknotfound/8832135 to your computer and use it in GitHub Desktop.
A bookmarklet to remove Gmail's image proxy links so you can load locally hosted images in your Gmail inbox during email tests.
javascript:(function(){var e=new RegExp("^https://[a-zA-Z0-9]+.googleusercontent.com/proxy/[a-zA-Z0-9_-]+[=][a-zA-Z0-9-+]+#");var t=document.getElementsByTagName("img");for(var n=0;n<t.length;n++){t[n].src=t[n].src.replace(e,"")}})()
@marknotfound
Copy link
Author

I'm bad at regex and there's probably a better way to do this, but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment