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

Can I parse this in a browser extension? #13

Closed
rugk opened this issue Dec 31, 2019 · 3 comments
Closed

Can I parse this in a browser extension? #13

rugk opened this issue Dec 31, 2019 · 3 comments

Comments

@rugk
Copy link

rugk commented Dec 31, 2019

I am a browser extension/add-on dev and I do have developed an add-on.
It basically skips the step "enter your mastodon" handle for Mastodons own/"internal" pages.

There already was some discussion about how one could do the same with a sharing button or so.

@wiktor-k and @SoniEx2 (and me uhm) did already discuss this in rugk/mastodon-simplified-federation#31 e.g. and we came to a conclusion that we need to have some kind of "standardized" sharing button implemented by many websites to make this work.

Now, this project could at least become a de-factor standard if many websites use it.
So what do you think about the idea if I'd parse your HTML (the data attributes will likely be the most convenient method) and intercept clicks on it, so it does instantly redirect to a share page? 😄
(if the user uses the add-on)

If I could intercept an URL (request), that would be even easier to integrate, but that is likely not possible(?).
Notice I do plan to support/redirect the web.mastodon:// protocol optionally, see rugk/mastodon-simplified-federation#32

@rugk
Copy link
Author

rugk commented Dec 31, 2019

If we should do so, we could of course also "advertise" these projects mutually. (as my thing would have a setting likely, I could obviously include a link there)

@Aly-ve
Copy link
Owner

Aly-ve commented Jan 4, 2020

Hello,
Of course you can. I don't have any problem by using MSB's code.

@rugk
Copy link
Author

rugk commented Jan 11, 2020

What do you think about linking it on the demo site/Readme once this is integrated?


Okay then I've opened rugk/mastodon-simplified-federation#52 on my site about this feature.
As for your project I guess the only point to be useful to have would be to somehow keep the "API" stable, i.e. the data attributes may not be changed – at it's best. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants