Posting to Micro.blog using a Bookmarklet

I figured people might be searching the Help Center for this topic, so I thought I’d include a link here.

The Micro.blog Posting Bookmarklet – Go here to install the bookmarklet.

The source is on Github.

2 Likes

Is there a way to add to the bookmarklet string to show-by-default ‘categories’ or ‘cross posting’: would save extra clicks/menu dive when posting.

1 Like

There isn’t a way to do that, but that’s a good idea.

Does this still work? I tried to install in Chrome for macOS and nothing fires when I click the bookmark.

It looks like there are some encoding problems on that page, messing up the bookmarklet. Edit the bookmark in Chrome and change the URL to:

javascript:(function(){"use strict";var w=window,d=document,s=w.getSelection().toString(),u='';if(s.length>0){u='https://micro.blog/post?bookmarklet=true&text=>%20'+encodeURIComponent(s)+encodeURIComponent('

')+'Source:%20['+encodeURIComponent(d.title)+']('+encodeURIComponent(w.location.href)+')'}else{u='https://micro.blog/post?bookmarklet=true&text=['+encodeURIComponent(d.title)+']('+encodeURIComponent(w.location.href)+')'}w.open(u,'Post to Micro.blog','location=0,links=0,scrollbars=0,toolbar=0,width=594,height=615')})();

Thank you so much!