Skip to content

Instantly share code, notes, and snippets.

@selfcontained
Created August 18, 2011 21:09
Show Gist options
  • Save selfcontained/1155213 to your computer and use it in GitHub Desktop.
Save selfcontained/1155213 to your computer and use it in GitHub Desktop.
Google+ Martin Schoeller Morphs Snapshots
var cnvs=document.createElement('canvas'),ctx,img,idx,int,divs=document.getElementsByClassName('H-y-qa H-y-pe-ea c-m-l H-y');for(idx in divs){if(divs[idx].getAttribute('data-content-url')=='https://plus.google.com/photos/117576570968762597633/albums/5642001971943305281/5642001977563718610'){img=divs[idx].firstChild;break}}cnvs.width=img.width;cnvs.height=img.height;int=setInterval(function(){cnvs=cnvs.cloneNode();ctx=cnvs.getContext('2d');ctx.drawImage(img,0,0);document.body.appendChild(cnvs)},775);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment