Created
November 15, 2010 22:53
-
-
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
This file contains 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: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);}})()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)