One thing that’s a bit of a hassle with Mastodon is that you can’t immediately follow people on other instances.

You have to copy the username and search for it on the server that has your account.

To make this easier, I’ve created a little bookmarklet. Press it, and you’ll be taken to the same account as viewed from the masto host you are on.

GitHub Gist: https://gist.github.com/bramus/d8bce55dab1881cde18aa2169c66ac33

(Change the value of `MY_MASTO_HOST` in the code to your mastodon host –not URL– and you’re good to go)

Mastodon User Page Bookmarklet

Mastodon User Page Bookmarklet. GitHub Gist: instantly share code, notes, and snippets.

Gist

@bramus this is cool! @ricvolpe and I were talking about this earlier.

I made a start on an Apple Shortcut that should be able to handle this too when on iOS / iPad. It’s a little rough around the edges but as a v0.2 it does alright: https://www.icloud.com/shortcuts/90f411dd8408455787a106da34ffb016

Shortcuts

@mattjbones @bramus

great find! but the booklet doesn't work for me in Chrome. It doesn't find meta[property="profile:username"

@ricvolpe @mattjbones Do you have an example profile URL page where it doesn’t work?

@bramus @mattjbones

when viewing a user not on their primary instance

@ricvolpe @bramus

Yah this is a gotcha for sure. My Shortcut won’t handle that path yet, as it assumes that the user is ok their instance.

I wanted to avoid parsing HTML in Shortcuts but this might be a better way really

@mattjbones @ricvolpe Updated my bookmarklet. It now handles profile pages, profile pages that have moved to a different server, and status pages.

https://gist.github.com/bramus/d8bce55dab1881cde18aa2169c66ac33

Mastodon User Page Bookmarklet

Mastodon User Page Bookmarklet. GitHub Gist: instantly share code, notes, and snippets.

Gist

@bramus @ricvolpe I revisited my Shortcut, it will now look for the meta tags for username.

I might have to take inspiration from the bookmarklet though and handle those other edge cases.

https://www.icloud.com/shortcuts/458eaca0377746189525ff004c4b0678

Shortcuts