bramus / mastodon-redirector

View Mastodon profiles on your Mastodon instance

Home Page:https://chrome.google.com/webstore/detail/mastodon-view-profile/limifnkopacddgpihodacjeckfkpbfoe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add button on remote instance to follow on local isntance

lanrat opened this issue · comments

It would be great if this extension could also add a button on the remote instance to follow the account on the local instance as part of the "Follow" button or modal on the remote server.

Thanks for making such a great extension!

The way Mastodon generates its markup and navigates (SPA) makes it pretty difficult to consistently inject an extra button. What’s done instead, is a adjustment to the follow dialog. Upon pressing the follow button, the markup in the dialog is altered to contain a direct link to your instance.

Without the extension:

image

With the extension:

image

Note the “View Profile” button that was added.

This should do it for now, but could always undergo some tweaking in the future.

This is great, thanks!