Script Summary: Use Google server as an image proxy
If you can not directly access image links or the loading is slowly, this script will rewrite the image links to googleusercontent.com proxy address. With Google server you can display image normally and load faster.
Note:
- Include url just simple "http://*" and google snapshot page(with https), so remember edit the expression to your like.
- If you want to resize the image, edit to code, change the argument "resize_h=0" in "suffix" variable, replace "0" to your prefer width.
- firegestures version check the firegestures script in this link.
- bookmarklet version. create a bookmark, name "Google Image Proxy", and paste the code in "Localtion".
javascript:(function(){prefix = "https://images2-focus-opensocial.googleusercontent.com/gadgets/proxy?url="; suffix = "&container=focus&gadget=a&no_expand=1&resize_h=0&rewriteMime=image%2F*"; images = document.getElementsByTagName("img"); for (var i = 0; i < images.length; i++) { if (images[i].src.indexOf(prefix) == -1) { images[i].src = prefix + images[i].src + suffix; } }})();


