Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

View Mastodon profiles on your Mastodon instance

License

NotificationsYou must be signed in to change notification settings

bramus/mastodon-redirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Available on the Chrome Web StoreAvailable on the Firefox Add-ons WebsiteAvailable as Bookmarklets

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. Same story with favoriting and boosting their posts, when viewed on their instance’s URL.

To make this easier, this extension exists.

Demo

mastodon-redirector-0.4.0-demo.mp4

This demo shows Chrome with the extension running. My Mastodon host isfront-end.social. After configuring the extension, I can quickly jump from other Mastodon instances to my own instance where I can follow/favorite/boost.

Installation

Quick Links

Use one of the buttons below to be taken to the extension stores

Available on the Chrome Web StoreAvailable on the Firefox Add-ons WebsiteAvailable as Bookmarklets

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 fromthe Chrome Web Store

Alternatively you can clone this repository andload the extension unpacked. Before you can do this, you will need tobuild the project though.

Don’t forget toconfigure the extension.

Firefox

You can install the extension fromthe Firefox Add-Ons Website. Because this extension uses Manifest v3, support is limited to Firefox 109 and up.

To run the extension in older versions of Firefox:

  • Go toabout:config and setextensions.manifestV3.enabled totrue
  • Hit the “download file” link on theAdd-Ons listing, upon which Firefox will prompt you to install it

Don’t forget toconfigure the extension.

Other Browsers

If you can’t or won’t run the extension, you can usethe bookmarklets which also do the job.

Configuration

  • Chrome:
    • Right click the extension icon and choose “Options”
    • Enter the details and hit “Save Settings”
  • Firefox:
    • Right click the extension icon and choose “Manage Extension”
    • Click the three dot menu next to the extension name and click “preferences”
    • Enter the details and hit “Save Settings”

TIP: To get easy access, pin the extension icon

Usage

When viewing a Mastodon page on a different instance than yours, hit the extension icon to get redirected to the profile/post on your instance. You can also use theAlt+Shift+M /Option+Shift+M shortcut to invoke the redirect.

Furthermore, this extension modifies the modals Mastodon shows on other instances. When wanting to follow/favorite/boost, a button with a direct link to your Mastodon instance will be injected into the markup.

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 onjq which you must install first.

While actively developing, make use of thewatch task. It will auto-rebuild whenever you save something insrc/.

make watch

Loading

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

make run-chrome

For Firefox, you’ll needweb-ext to load the extension during development. Aweb-ext-config.js is included in the repository, so you can easily runweb-ext run. Alternatively you can use therun-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 enclosedLICENSE for details.

Acknowledgements

Icon byFlatart


[8]ページ先頭

©2009-2025 Movatter.jp