Follow Mastodon User on Micro.blog Shortcut
Micro.blog has support for following and replying to Mastodon users but getting from someone's profile on Mastodon to the follow page on Micro.blog can be a pain. To search for a user you need have it in the format of cooluser@mastodon.instance
which isn't the same as the profile URLs. To make this easier I made a shortcut that does the following:
- Takes the current Safari URL, for example
https://mastodon.instance/@cooluser
- Gets the domain (
mastodon.instance
) and the path (@cooluser
) - Swaps those round to become
cooluser@mastodon.instance
- Opens the page on Micro.blog to be able to follow that user (
https://micro.blog/cooluser@mastodon.instance
)
It will also check to see if the path/username contains an @
symbol and if it doesn't will show an alert instead. This isn't ideal but given that Mastodon can have any domain, it's much harder to detect if it's a Mastodon site or not.
There is a meta tag in the HTML with profile:username
as the property name but I don't know enough about Shortcuts to do this.
Download Follow Mastodon User on Micro.blog shortcut v1.1
Previous Versions
- v1.0 - this version won't work if the user hasn't been seen before by Micro.blog