An open API service indexing awesome lists of open source software.

https://github.com/codepo8/mastodon-share

A share to mastodon button
https://github.com/codepo8/mastodon-share

Last synced: 5 months ago
JSON representation

A share to mastodon button

Awesome Lists containing this project

README

          

# Share on Mastodon button

A simple script to provide a "share on mastodon" button without any styles.
To use it, add the script and put a link where you want to share to mastodon.

I've made all the things you want to show to the user editable in the link.

```HTML

Share to Mastodon


```

The first time users click the share button, it asks for their mastodon instance and stores it in local storage. Subsequently you can just click the link. Here's how that looks as a GIF recording:

![Recording of the interaction](share-to-mastodon.gif)

You also get an edit link next to the share button to edit your instance in case you made a mistake.

[See it in action](https://codepo8.github.io/mastodon-share/)