Skip to content

Instantly share code, notes, and snippets.

@justinrainbow
Created April 3, 2012 19:25

Revisions

  1. justinrainbow created this gist Apr 3, 2012.
    1 change: 1 addition & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    var r=/gif$/,b=document.body,i="",h="innerHTML";b[h].replace(/href="([^"]*?)"/g,function(m,u){if(r.test(u))i+="<img src='"+u+"'>"});b[h]=i;