Skip to content

Instantly share code, notes, and snippets.

@spudtrooper
Created April 15, 2011 13:36
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 spudtrooper/921698 to your computer and use it in GitHub Desktop.
Save spudtrooper/921698 to your computer and use it in GitHub Desktop.
inline images in chrome history
<a href='javascript:(function() {function main() {var width=300;var as=document.getElementsByTagName("A");for (var i=0; i<as.length; i++) {var a=as[i];var src=a.href;var el=document.createElement("DIV");var img=document.createElement("IMG");img.src=src;img.setAttribute("src",src);img.width=width;img.setAttribute("width",width);el.appendChild(img);a.parentNode.appendChild(el);}}main();})();'>chrome history images</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment