FediAct icon indicating copy to clipboard operation
FediAct copied to clipboard

Multi-account toggle.

Open tecknojock opened this issue 2 years ago • 4 comments

It would be great if, similar to on twitter, if the plugin injected a UI element on the page that allowed you to toggle between which account you want to use. I use an account for NSFW and SFW interactions and would like to be able to use the plugin on either one as the case dictates.

tecknojock avatar Dec 19 '22 16:12 tecknojock

Hi, there are already plans to improve multi-account support. I closed the related issue #13 in favor of this one, as I like the approach of a toggle more and it's less work considering cross-browser compatibility.

My idea of it is like this:

  • Popup/settings will be updated so that unlimited home instances can be added (with a configurable default)
  • Access tokens will be stored as a dictionary in the local storage
  • Content script will be updated so the FediAct div in the bottom right (v0.9.8.1 onwards) includes a dropdown to choose the home instance / account to perform actions with
    • The dropdown will only show home instances for which a token could be found

Feel free to make further suggestions.

// edit: oops, accidentally closed it

Lartsch avatar Dec 19 '22 16:12 Lartsch

I saw that one, but I hadn't felt like it quite encompassed my need. I appreciate the quick response and certainly look forward to this update. 👍

tecknojock avatar Dec 19 '22 16:12 tecknojock

I don't know enough about browser development to be sure, but it sounds like Firefox containers have sandboxed local storage, so if the selected account is saved to local storage I think that will allow me to do what I requested in #13 (but this looks like a more generic and elegant solution). Thanks for looking into this!

confluence avatar Dec 19 '22 18:12 confluence

Mentioned in #28 but I quickly made this in inspect element: image

Freeplayg avatar Dec 21 '22 00:12 Freeplayg