Skip to content

Instantly share code, notes, and snippets.

@czottmann
Created May 8, 2010 08:55
Show Gist options
  • Save czottmann/394451 to your computer and use it in GitHub Desktop.
Save czottmann/394451 to your computer and use it in GitHub Desktop.
javascript:(function(){title=%22%22;output=%22%22;candidatesA=document.getElementsByTagName(%22a%22);candidatesTD=document.getElementsByTagName(%22td%22);for(cand=null,i=0;(cand=candidatesA[i]);i++){match=cand.href.match(/(\/public\/view_image\.php\?[^'$]+)/i);if(match!=null){output+=%22<img%20src='http://www.ishotmyself.com%22+match[1]+%22&m=img'%20border='1'%20/><br/><br/>%22;}}for(cand=null,i=0;(cand=candidatesTD[i]);i++){if(cand.getAttribute(%22class%22)==%22heading%22){title=cand.innerHTML;title=title.replace(/<[^>]+>/g,%22%22);title=title.replace(/\s+/g,%22%20%22);break;}}document.write('<html><head><title>'+title+'</title></head><body>\n<h2>'+title+'</h2><center>'+output+'\n</center></body></html>');})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment