A Chrome/Firefox extension that simplifies follow and post interactions on Mastodon servers other than your own.
 
 
 
 
Go to file
lartsch dbf1813adf start background processor earlier to react in some conditions 2022-12-14 19:30:40 -05:00
firefox added new options, renamed options 2022-12-14 19:23:31 -05:00
img change media 2022-12-02 17:38:31 -05:00
src start background processor earlier to react in some conditions 2022-12-14 19:30:40 -05:00
.gitignore another big update (utilize background script, remove redirect page, introduce ext. follow indicator) 2022-11-25 20:40:41 -05:00
LICENSE Update LICENSE 2022-11-17 15:09:19 +01:00
README.md Update README.md 2022-12-14 19:16:35 -05:00
manifest.json added new options, renamed options 2022-12-14 19:23:31 -05:00
pack.sh changed release file names 2022-12-07 14:16:25 -05:00

README.md

FediAct (v0.9.7)

A Chrome/Firefox extension that simplifies following and post interactions on other Mastodon instances than your own.

Features:

  • Supports Mastodon v3 + v4
  • Follow, boost, bookmark, reply, favourite and vote polls on external instances while only being logged in to your home instance
  • Show following status and toot status (boosted, faved, bookmarked) on external instances
  • Single click to execute action only, double click to redirect to content on home instance
  • Reply button on external instances always redirects to home instance and enters reply-mode
  • Hide muted content on external instances if enabled
  • Customizable

Supported browsers:

  • All up-to-date Chromium browsers, including Kiwi browser on Android
  • Up-to-date Firefox, including Firefox Nightly on Android

Important notes:

  • All data is processed locally only
  • Performance depends on the performance (and rate limiting) of your home instance and to some degree of the external instance you are browsing (read more below)
  • Some toots cannot be resolved to your home (in cases where searching the post manually would also not work)

Navigation

Installation

Chrome + other Chromium browsers

Firefox including Firefox for Android

Note

If you like this addon, please consider donating: paypal.me/lartsch

Setup

  1. Make sure you are logged in to your home instance
  2. Click the extension icon or open its settings page
  3. Set your home instance (required)
  4. Check out the other settings (optional)
  5. Click the "Submit" button to save

If you have set your home instance correctly, you can now interact on other Mastodon instances.

Options explained

Redirect settings

  • Enable: Set if redirects (when replying or double-clicking) should be performed at all (default: on)
  • Prompt: Set if a prompt should be displayed before redirecting, including the URL (default: on)
  • Open in: Set if redirects should happen in the same or a new tab (default: same tab)

Other

  • Actions: Set if actions (following, boosting etc.) should be performed when clicking or double clicking (default: on)
    • Usage tip: Disable this if you only want redirects on double click or when replying without automatically performing the action
  • Show follows: Set if the following state of accounts should be reflected on profiles / account cards (default: on)
    • Please note: When disabled, the state will still be changed on interaction and stored until the page is reloaded of left
  • Show toot state: Set if the state of toots (favourited, boosted, bookmarked) should be reflected (default: on)
    • Please note: When disabled, the state will still be changed on interaction and stored until the page is reloaded of left
  • Hide muted/blocked: If enabled, your blocked/muted users/instances will be synched every 60 seconds and all according toots, boosts and toots with mentions will be hidden (default: off)
    • Please note: There are cases where hiding can fail and this is disabled by default because it can decrease performance
  • API delay: If enabled, there can only be one API request to your home instance per 500ms (default: on)
    • Please note: Disabling this will likely lead to the extension stopping to work because your home instance uses rate limiting if too many requests come from your IP. 500ms have proven to prevent error 429 for the instances I have tested.

Mode

  • Run if logged in: Enable FediAct on external instances if you are logged in there as well (default: off)
  • Blacklist (default) / Whitelist: Run the extension on all domains except those on the blacklist / Run the extension on no domains except those on the whitelist

FAQ

Why does it need permission for all websites?

The addon needs to determine if the site you are currently browsing is a Mastodon instance or not. For that matter, it requires access to all sites. Otherwise, each existing Mastodon instance would have to be explicitly added.

Can I use this on Android?

Yes! There are three options that I am aware of: Kiwi Browser (Chromium with add-on support), Yandex Browser and Firefox Nightly (see below)

Can I use this on iOS?

As of now, this addon does not support Safari and I am not aware of any other browsers on iOS, that support extensions. So no, not at this time. PLEASE NOTE: Safari support will not happen at this time since Apple wants 99$ per year for the Developer Program membership, which is a requirement.

Can you add feature XY?

Feel free to create an issue here on Github and I will look into it.

Screenshots / GIFs

v0.8.0

Extension popup / settings
Showcase

Manual installation

  1. Download the latest Github release for your browser (chrome or firefox)

Chrome

  1. Unzip the downloaded file somewhere
  2. Go to your Chrome extension page (URL: chrome://extensions) and enable developer mode
  3. Click the "Load unpacked" button and then select the unzipped folder

Note: Some Chromium browsers allow to directly load a .zip file - you can use it if available for you

Firefox

  1. Open the debugging page (URL: about:debugging)
  2. Select "This Firefox"
  3. Click the "Load Temporary Add-on" button and then select the downloaded Firefox ZIP file

Install in Firefox for Android

Since a while, Firefox on Android only allows a curated list of addons to install, preventing installation of anything else. The following explanation will guide you how to install it from the webstore anyways.

Requirements:

Steps:

  1. In Firefox, go to Settings > About Firefox Nightly
  2. Click the Firefox logo 5 times to enable developer options
  3. Go back to Settings > Custom Add-on Collection
  4. Enter the following data:
    • ID: 17665294
    • Name: FediAct
  5. Click OK, Firefox will close - reopen it
  6. FediAct will now be available in the Add-ons menu of Firefox Nightly

To update the addon instantly, simply remove and re-install it. Not sure when/if auto-update triggers in Firefox.

I included all of the default add-ons in the custom collection, so you will not miss out on any of those. Of course, you can create your own collection as well.

Additional notes

  1. Support for other Fedi software is planned
  2. The whitelist mode can be useful if you do not want the extension to run basic checks on every site (since it needs to determine if its a Mastodon site). Not sure if blacklist is good for anything but I still included it.
  3. It can have several reasons why resolving/interacting might not work:
    • Not logged in to your home instance
    • Element identifiers have changed / instance uses an unsupported flavour
    • The external instance you are browsing or the originating instance of a toot is not Mastodon
    • Your home instance has strong rate limiting and limited your IP
    • Your home instance / the external instance / the original instance of a toot have defederated / are moderated
    • The toot has not yet federated to your home instace (follow the account and toots should start federating)
    • The instance you are browsing does not use 302 redirects for external toots
    • The network conditions of your home instance or the external instance are bad (slow speed)
    • Maybe it also plays a role if the toot is set to unlisted on its original instance
  4. There can be delays since API calls have to be made and it is attempted to prevent error 429 (too many requests). Especially if a page has many toots or you are scrolling through a feed really fast.
  5. If the extension fails to resolve content, the affected buttons will behave like usually (popup modal) and a notice ("Unresolved") is added to the toot
  6. If you are logged in on another instance than your home instance, the addon will not process that site (so you can still use other instances where you have an account)

Todos / Planned features

Check out the according Github project to see planned features and todos. They are sorted from most important to least important.

Contributing

Feel free to create issues for bugs and feature suggestions. Even better: Create pull requests for whatever improvements you can make! :)

Thanks to...

@raikasdev because I stole his fix for cross-browser storage API support
@rosemarydotworld because I customized and use his awesome jQuery.DOMNodeAppear where MutationObservers and delegation failed