Skip to content

Instantly share code, notes, and snippets.

@m3talsmith
Created July 11, 2010 12:13
Show Gist options
  • Save m3talsmith/471507 to your computer and use it in GitHub Desktop.
Save m3talsmith/471507 to your computer and use it in GitHub Desktop.
javascript:Ai7Mg6P='';
var images=document.getElementsByTagName('img');
if(images.length>=1){
var images_string='';
for(i7M1bQz=0;i7M1bQz<images.length;i7M1bQz++){
var image_src=images[i7M1bQz].src;
images_string+=('<img style=\'pointer:cursor;\' src=\''+image_src+'\' onClick="location.href=\'http://user.adme.in/blog/add?username=username&access=access_id&img='+image_src+'&title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'\'" />');
}
document.write('<center><h2>Click on an image to post it on your wall</h2><br /><div id=\'photoblog-images\'>'+images_string+'</div></center>');
}else{alert('There are no images on this page. Please find the image you would like and try again.');}
Just replace access_id and username with the proper username and access_id, minimize the code, and drag this script to your bookmarks. Working photo blogging in chrome.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment