kendellrt Posted April 10, 2010 Posted April 10, 2010 I have been using the following code as a bookmarklet to share any website that I am currently viewing: java script:var%20d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1264100589&u='+e(l.href)+'&t='+e(d.title);1;try%7Bif%20(!/%5E(.*%5C.)?facebook%5C.%5B%5E.%5D*$/.test(l.host))throw(0);share_internal_bookmarklet(p)%7Dcatch(z)%20%7Ba=function()%20%7Bif%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p%7D;if%20(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%7Ba()%7D%7Dvoid(0) It works great, but I would like one for Twitter, also. Do any of you know of a code to use as a bookmarklet to tweet the current website you are viewing on Twiiter? Share this post Link to post Share on other sites More sharing options...
d3bruts1d Posted April 11, 2010 Posted April 11, 2010 Use to have one, but cannot find the code. I just use the SahreThis bookmarklet now. http://sharethis.com/features/download Share this post Link to post Share on other sites More sharing options...
kendellrt Posted April 11, 2010 Posted April 11, 2010 (edited) Use to have one, but cannot find the code. I just use the SahreThis bookmarklet now. http://sharethis.com/features/download Cool, that looks like it will work great, thanks! Do you know if they make one for Firefox, also? BTW, did you check out my other thread I PMed you about? EDIT: Is there a way to customize the bookmarklet? I don't want all of that extra stuff. Edited April 11, 2010 by chavalcito Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now