Created
July 11, 2010 12:13
-
-
Save m3talsmith/471507 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.');} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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