Skip to content

Instantly share code, notes, and snippets.

@georgestephanis
Created June 14, 2012 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save georgestephanis/2927693 to your computer and use it in GitHub Desktop.
Save georgestephanis/2927693 to your computer and use it in GitHub Desktop.
Possibility for fetching images for Press This?
img = document.getElementsByTagName('img');
send = [];
raw = new Image();
for( i in img ){
raw.src = img[i].src;
if( raw.width >= 50 || raw.height >= 50 ){
send.push( raw.src );
}
}
alert( send.join('||') );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment