Gaia Image Patch

Lets Images load directly without using gaia's image cache server (The cache server exist to prevent password protected images from prompting for password)

  1. // ==UserScript==
  2. // @name Gaia Image Patch
  3. // @namespace http://userscripts.org/users/62850
  4. // @description Lets Images load directly without using gaia's image cache server (The cache server exist to prevent password protected images from prompting for password)
  5. // @include http://www.gaiaonline.com/*
  6. // @version 1
  7. // ==/UserScript==
  8. var imgs=document.evaluate("//img[starts-with(@src,'http://img-cache.cdn.gaiaonline.com/')]",document,null,6,null),img,url;
  9. for(var i=imgs.snapshotLength-1;i>-1;i--){
  10. img=imgs.snapshotItem(i);
  11. url=img.src;
  12. url=url.substr(url.lastIndexOf('/http')+1);
  13. img.src=url;
  14. }