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 @thomasreggi built a similar bookmarklet for this kind of thing as well.
https://indieweb.social/@thomasreggi/109369591846357657
It’s good to see these popping up, but highlights a bit of a need for more native and easy to use solution. Hope we get that at some point.
thomas 🌸 (@[email protected])

Just created a mastodon browser bookmarklet that makes it easier for you to redirect from other instances to your instance. all you have to do is replace "indieweb.social" with your instance, unless your on "indieweb.social" 😉 So if you're clicking and find a mastodon profile you want to follow, you click the bookmarklet and it will take you directly to their profile on your instance 🪄 https://codepen.io/reggi/full/mdKqgQx

Indieweb.Social
@ampersarnie @bramus there's another solution out there from @elizabeth that I replicated here https://mastodon-redirect.deno.dev/ some good links there, it involves using local storage to set and redirect people to their instances a tool by @jlarky uses it https://imverified.up.railway.app/techtwitter
@ampersarnie @bramus @elizabeth @jlarky currently there's two hacks to do this, 1️⃣ use the bookmarklet when you want to redirect, or 2️⃣ if you're building an app have people redirect to a shared local storage server, I suppose I could integrate the bookmarklet and this local storage solution so you don't have to set your instance in the bookmarklet code 🤔

@ampersarnie @jlarky @elizabeth @thomasreggi Nice!

One area where my bookmarklet differs from those other ones, is that mine does not rely on URL parsing and therefore plays nice with mastodon hosts that are served from a subdomain.

(In Mastodon config terms: LOCAL_DOMAIN vs WEB_DOMAIN – https://docs.joinmastodon.org/admin/config/#federation)

Configuring your environment - Mastodon documentation

Setting environment variables for your Mastodon installation.

@thomasreggi @ampersarnie @bramus @elizabeth @jlarky

great work going on here by everyone!

I was trying to get this to work with posts but I noticed that the post ID is different between instances so not easy to cross-references. Has anyone looked into this?

@ricvolpe can you explain the usecase a bit more? :-)
@jlarky I'd like to favourite a post I stumble upon when browsing another server instance on Web without having to search the post URL in my server instance
@ricvolpe interesting, I don't browse too far away from my home feed :)
@ricvolpe @jlarky i think you can search for the full post URL from your home instance and it will get resolved
@ricvolpe @thomasreggi @ampersarnie @elizabeth @jlarky Ah I see. You need to visit a profile page, not a post detail page. Will look into it …

@ricvolpe @thomasreggi @ampersarnie @elizabeth @jlarky PR to include this metatag on Mastodon statuses: https://github.com/mastodon/mastodon/pull/21423

Also working on a revision of the bookmarklet so that it falls back to extracting the info from elsewhere in case the meta tag isn’t present.

Add user profile OG tag on status page by bramus · Pull Request #21423 · mastodon/mastodon

This PR adds the profile:username opengraph tag to status pages, in addition to it already being shown on account profile pages. This allows for easier automation to detect which profile published ...

GitHub

@ricvolpe @thomasreggi @ampersarnie @elizabeth @jlarky Updated my bookmarklet to cater for more scenarios.

It now handles profile pages, profile pages that have moved to a different server, and status pages.

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

Feedback welcome :)

Mastodon User Page Bookmarklet

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

Gist

@bramus @thomasreggi @ampersarnie @elizabeth @jlarky

nice!

it seems to be working well for me except for profiles on front-end.social, not sure why!

@thomasreggi @ampersarnie @ricvolpe @elizabeth @jlarky You need to adjust a value in the bookmarklet before you can use it on your masto host.

It's currently configured to work with front-end.social, which I am on.