Skip to content

Instantly share code, notes, and snippets.

@YungSang
Created November 15, 2010 22:53
Show Gist options
  • Save YungSang/701118 to your computer and use it in GitHub Desktop.
Save YungSang/701118 to your computer and use it in GitHub Desktop.
[Deprecated] Revised "Post to Pip.io" Bookmarklet: escape -> encodeURIComponent to post UTF-8 characters correctly
javascript:void((function(){var%20u=location.href,e=encodeURIComponent,c='http://pip.io/api/posts/post/create',m=prompt('Post%20this%20link%20on%20Pip.io',document.title);if(m!=null){c+='?attachments=[{%22type%22:2,%22url%22:%22'+e(u)+'%22}]&body='+e(m)+'&targets=&channels=&cc=&cc_data=&source_id=0&source_type=1&is_public=1&reply_id=0';var%20w=window.open(c,'pipwin','height=1;width=1');setTimeout(function(){w.close();},2000);}})())
@YungSang
Copy link
Author

If you want to CC to apps at the same time, replace &cc= with &cc=6,12 for Twitter & Buzz.
(facebook=5, twitter=6, buzz=12, friendfeed=13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment