Lartsch / FediAct

Chrome/Firefox extension that simplifies interactions on other Mastodon instances than your own.
MIT License
459 stars 15 forks source link

Multi-account toggle. #18

Open tecknojock opened 1 year ago

tecknojock commented 1 year ago

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.

Lartsch commented 1 year ago

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:

Feel free to make further suggestions.

// edit: oops, accidentally closed it

tecknojock commented 1 year ago

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. 👍

confluence commented 1 year ago

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!

Freeplayg commented 1 year ago

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