stefan.grothkopp.com

Relax - This won't hurt. 
Filed under

bookmarklet

 

Buzzmarklet

I created a bookmarklet to share stuff via google buzz.

Just create a bookmark containing the link in your bookmarks toolbar, visit some site, select some text and click the bookmark.

Here it is:
javascript:(function(){var b="";var t= "";var s="";var d=window.getSelection()+'';if (d.length>0) b="\n\n"+'"'+d+'"'+"\n\n";; s=document.title; window.setTimeout('document.location = "http://www.google.com/reader/link?url='+encodeURIComponent(document.location)+'&title='+encodeURIComponent(document.title)+'&snippet='+encodeURIComponent(b)+'&srcURL=&srcTitle=";',0);})();

Loading mentions Retweet
Filed under  //   bookmarklet   buzz   google   javascript  

Comments [0]

posterous to gmail bookmarklet

I created a bookmarklet that lets you post to posterous by gmail when you call it.

create a bookmark with the following as url:

javascript:(function(){var b="";var t= "";var s="";var d=window.getSelection()+'';if (d.length>0) b='"'+d+'"'+"\n\n";b=b+document.location; var m=document.getElementsByName('keywords');for (var i=0; i<m.length; i++) { t+=m[i].content+',';     } t = t.split(","); s=document.title;if(t && t.length>0) {s+=" ((tag:";for(var i =0; i<t.length && i<5;i++) s += t[i]+',';s = s.substr(0,s.length-1);s +="))";} window.setTimeout('document.location = "http://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=0&body='+encodeURIComponent(b)+'&to=post@posterous.com&su='+encodeURIComponent(s)+'";',0);})();

If you click it you will be redirected to a gmail compose page.
The title of the page you were currently on will be the mail subject, up to 5 meta-keywords will be included with the tag-command.
Any text you select before clicking the link will be included in the mail, too.
I just tested it on firefox 3 on linux, so please let me know if there are any bugs on other platforms.

Loading mentions Retweet
Filed under  //   bookmarklet   code   gmail   my projects   posterous  

Comments [1]