Skip to content

Instantly share code, notes, and snippets.

@watagashi
Forked from NeoCat/tweet_URL_with_twicli.js
Created October 9, 2010 04:02
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 watagashi/617868 to your computer and use it in GitHub Desktop.
Save watagashi/617868 to your computer and use it in GitHub Desktop.
Open twicli and input tweet with current URL, title and selected text
javascript:void(function(){var%20d=document,w=window,t=(d.selection)?(d.selection.createRange().text):(d.getSelection)?d.getSelection():(w.getSelection)?w.getSelection():'';w.open('http://twicli.neocat.jp/twicli.html?status='+encodeURIComponent((t?'"'+t+'"':'%20>')+'%20'+d.title+'%20'+location.href),'twicli')}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment