Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add framework for supporting other Fedi software #12

Closed
ItsVipra opened this issue May 24, 2023 · 3 comments
Closed

Add framework for supporting other Fedi software #12

ItsVipra opened this issue May 24, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ItsVipra
Copy link
Owner

Reasoning

Currently ProToots only supports Mastodon and (presumably) close forks. However Fedi is much more than Mastodon.
Different software uses different classnames etc., so a way to support those different platforms without trying everything in one messy block of code would be helpful.

@ItsVipra ItsVipra added enhancement New feature or request help wanted Extra attention is needed labels May 24, 2023
@ItsVipra
Copy link
Owner Author

@ItsVipra
Copy link
Owner Author

ItsVipra commented May 29, 2023

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Content_scripts#loading_content_scripts

Maybe have one content script that matches any site and calls a different script depending on which Fedi client we're on

Additionally, everything relating to fetching pronouns can be factored out into its own function

update: content_script does not have access to the scripting api
the procedure would have to be;

  1. load content_script checksite.js
  2. checksite.js sends message with site type to background script
  3. background script calls main_$sitetype.js
  4. proceed as normal
  5. (communicate with fetchpronouns.js or import it?)

@ItsVipra
Copy link
Owner Author

closed thanks to #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant