nanos / mastodon-profile-redirect

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

Mastodon Profile Redirect

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 instance that hosts your account.

To make this easier, this extension exists. Press the button, and you’ll be taken to the same account as viewed from the Masto instance you are on.

mastodon-view-profile-demo.mp4
Available on the Chrome Web Store Available on the Firefox Add-ons Website Available as a Bookmarklet

Installation

Chromium-based browsers

This applies to browsers that are based on Chromium. This includes Google Chrome, Microsoft Edge, …

The easiest way is to install it from the Chrome Web Store

Alternatively you can clone this repository and load the extension unpacked. Before you can do this, you will need to build the project though.

Firefox

Soon this extension will also be available on the Firefox Add-Ons Website. The extension has been submitted and is currently pending review.

Other Browsers

If you can’t or won’t run the extension, you can use the bookmarklet which also does the job.

Configuration

  • Make sure you configure the extension once installed. To do this, right click on the extension icon and choose “Options”
  • When viewing a Mastodon page, hit the icon to get redirected to the profile shown on your instance.
    • TIP: To get easy access, pin the extension icon
  • Supported pages
    • Profile page
    • Profile page that is set up to redirect to another account
    • Message detail page

Development

Building

Due to minor differences in support for extensions that use Manifest v3 in Chromium and Firefox, the code of this repository cannot directly be loaded. The code needs to be built.

make build-all

The built, yet still unpacked, extensions can be found in ./build/firefox and ./build/chromium.

Building depends on jq which you must install first.

Loading

For Chromium based browsers, load the extension unpacked from the ./build/chromium folder. Alternatively you can use the run-chrome Make script:

make run-chrome

For Firefox, you’ll need web-ext to load the extension during development. A web-ext-config.js is included in the repository, so you can easily run web-ext run. Alternatively you can use the run-firefox Make script:

make run-firefox

Support and bugs

This project is offered as is. However, I am open to receiving bug reports and accepting PRs to improve this extension.

License

This project is released under the MIT public license. See the enclosed LICENSE for details.

Acknowledgements

Icon by Flatart

About

View Mastodon profiles on your Mastodon instance

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

License:MIT License


Languages

Language:JavaScript 41.1%Language:Makefile 23.6%Language:HTML 19.6%Language:CSS 15.7%