mastodon-simplified-federation icon indicating copy to clipboard operation
mastodon-simplified-federation copied to clipboard

Multiple instances support

Open regagain opened this issue 5 years ago • 7 comments

Thank you for this great add-on!

It would be great to have support for multiple instances. I guess it would require some kind of UI that lets the user choose which one of the their instances they want to use every time there's an interaction. What do you think?

regagain avatar May 19 '19 08:05 regagain

One important question would be:

  • Is it enough if you have a popup or so, where you could select which account you want to currently redirect to?
  • or should it be possible to chose this each time an interaction/follow request appears?

rugk avatar May 19 '19 10:05 rugk

Is it enough if you have a popup or so, where you could select which account you want to currently redirect to?

I think this would be enough!

regagain avatar May 19 '19 12:05 regagain

Okay, maybe I'll wait for some more opinions.

Because, actually, the "choose each time" mode may be easier to implement… :laughing:

rugk avatar May 19 '19 13:05 rugk

Both options are fine with me tbh :)

regagain avatar May 27 '19 15:05 regagain

I would like to suggest that, if it could support firefox containers, a workflow of one account per container (which is what I do, for the most part) would prevent the need for a mandatory "ask each time" flow. Just some food for thought, though!

2rs2ts avatar Nov 23 '22 21:11 2rs2ts

Indeed, that is a great idea. The API doc for that is https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/contextualIdentities and the permission could (and should) be optional and be requested when a setting is enabled via the PermissionRequest lib.

Note also when we have the tab, we can then retrieve the contextual (cookie store) ID of that to find out what context we currently have: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/Tab#cookiestoreid

Example: https://github.com/mdn/webextensions-examples/tree/master/contextual-identities

Note any more design help or implementation help is certainly welcome here.

rugk avatar Nov 30 '22 23:11 rugk

I'm happy to see progress being made about this, as #92 is an issue that I encountered as well.

testman42 avatar Dec 17 '22 19:12 testman42