Kiwi Bookmarklet 1.2

What it does

If you select (highlight) some piece of text in your browser, the bookmarklet will paste exactly that text plus the current URL to the Kiwi compose window. If you didn’t select anything, the bookmarklet will paste the window title plus the URL to the Kiwi compose window. Unlike Kiwi Bookmarklet 1.1, the new version is making use of the Markdown capabilities of Kiwi 3.1 by putting the text or window title in square brackets and the URL in round brackets. This will enable Kiwi 3.1 to create neat inline links. Tested with Kiwi 3.1.0b9.

Just drag the link below to your bookmark bar …

Paste MD to Kiwi

… or use the following code with the tool of your choice:

javascript:var%20t='';if(window.getSelection){t=window.getSelection();}else%20if(document.getSelection){t=document.getSelection();}else%20if(document.selection){t=document.selection.createRange().text;};if(t!=''){location.href='kiwi://post?text='+'%5B'+encodeURIComponent(window.getSelection().toString()+'%5D%28'+window.location+'%29');}else{location.href='kiwi://post?text='+'%5B'+encodeURIComponent(document.title+'%5D%28'+window.location+'%29');};  

Have fun!


Also still available:

Kiwi Bookmarklet 1.1

If you select (highlight) some piece of text in your browser, the bookmarklet will paste exactly that text plus the current URL to the Kiwi compose window. If you didn’t select anything, the bookmarklet will paste the window title plus the URL to the Kiwi compose window. Nice – and easy.

Just drag the link below to your bookmark bar …

Paste to Kiwi

… or use the following code with the tool of your choice:

javascript:var%20t='';if(window.getSelection){t=window.getSelection();}else%20if(document.getSelection){t=document.getSelection();}else%20if(document.selection){t=document.selection.createRange().text;};if(t!=''){location.href='kiwi://post?text='%2BencodeURIComponent(window.getSelection().toString()%2B'%20'%2B'-'%2B'%20'%2Bwindow.location);}else{location.href='kiwi://post?text='%2BencodeURIComponent(document.title%2B'%20'%2B'-'%2B'%20'%2Bwindow.location);};  

By the way:

If you have any idea how to add the link shortening capabilities of YOURLS to this tiny piece of JavaScript, I’d be happy to hear from you!