Skip to content

Instantly share code, notes, and snippets.

@jimpick
Created December 18, 2008 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimpick/37658 to your computer and use it in GitHub Desktop.
Save jimpick/37658 to your computer and use it in GitHub Desktop.
// This is a bookmarklet for use with TarPipe which works well with the iPhone.
// Replace YOUR_CODE_HERE with your API key. Copy the text starting with 'javascript:' to a new bookmark in your web browser. To put it on your iPhone, create a new Bookmark in Safari, and then sync your bookmarks to your iPhone using iTunes.
// Based on: http://webtopmania.blogspot.com/2008/05/how-to-send-posts-to-twitter-jaiku-and.html
javascript:(function(){k='YOUR_CODE_HERE';w='310';h='200';x='30';g='30';u='25';t='todo';s=document.title;if%20(!s)%20s=t;n=window.open('','Tarpipe%20bookmarklet','width='+w+',height='+h);n.focus();d=n.document;d.write('%3Cmeta name=viewport content="width=320"%3E');d.write('%3Cform%20action=%22http://rest.receptor.tarpipe.net:8000/?key='+k+'%22%20method=%22POST%22%20enctype=%22multipart/form-data%22%3E');d.write('Title%20%3Cinput%20type=%22text%22%20size=%22'+x+'%22%20name=%22title%22%20value=%22'+s+'%22%20maxlength=%22140%22/%3E%3Cbr/%3E');d.write('Tags%20%3Cinput%20type=%22text%22%20size=%22'+g+'%22%20name=%22body%22%20value=%22'+t+'%22/%3E%3Cbr/%3E');d.write('Url%20%3Cinput%20type=%22text%22%20size=%22'+u+'%22%20name=%22url%22%20value=%22'+location.href+'%22/%3E%3Cbr/%3E');d.write('%3Cinput%20type=%22submit%22%20name=%22Submit%22%20value=%22pipe%22/%3E');d.write('%3C/form%3E');})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment