-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support for Mastodon v4 #77
Comments
Is this live on mastodon.social? If so that is uff, as it changes the whole way this extension works. It now cannot just intercept URLs, but indeed needs to rely on injection. |
Yes, mastodon.social is running v4.0.0rc1. |
Also, the interface link is now |
There is also this relevant new issue on the Mastodon page mastodon/mastodon#20296 which flags that new Web APIs are available that can register websites as handlers for other types of links. This seems like the longer term solution but no idea if it will get takeup. |
I think HTML injection can only be done via a content script, in which case there are 2 ways to go about this:
In both cases, the content script locates the follow button and adds an eventListener that redirects on click to https://example.instance/authorize_interaction?uri=@[email protected], and then preventsDefault and further propagation of the event. And analogous injections for the interaction buttons too (i.e. reply, boost, and favourite). If this makes sense, I'm happy to send in a PR implementing it. But since it appears to quite different from how the extension currently operates and this would also be my first contribution to the repo, I'd appreciate @rugk's thoughts on this. Edit: I have since opened a draft PR (#82) |
Just wanted to mention that https://github.com/mastodon/mastodon/releases/tag/v4.0.0 has just been officially released, so we'll start to see more servers stop working with the extension soon. hueyy's second proposal sounds like a decent plan to me. |
Yeah I joined mastodon yesterday, and all the servers I have tested are on v4 and don't work with the extension. |
@atomicwrites We're at it, thanks again to @hueyy who works on that in #82. |
seems like the fix is already g2g, when should we expect to have an update on the extension? Thanks a lot! |
I would like to share that another extension has popped up that apparently handles the Mastodon 4 redirection. I haven't tested it since it also requests all site data and has no reviews, and I don't know if it'll play nice with Pleroma etc., but it might be worth taking a peek at how they accomplish it. |
All of the instances I've tried it with are v4, so I think the currently published version is broken for most people. I made a little userscript to use until the fixed version is published (replace example.com by your instance, then use with F2).
|
@DiThi I just built myself a similar UserScript (although yours is so much simpler), but my instance will only show a spinner for accounts it hasn't yet interacted with. As soon as I open the profile once (e.g. through my instance's search), the URL will work. For now, I'm using the |
Will there be a new release of the extension any time soon so we can reap the benefits of this fix? |
Yeah I think an imperfect addon that can only follow people and maybe fav/boost sometimes is much better than an outdated that can't do even that. I used this addon a few times, but very rarely because so few instances I encounter are v3 now. |
BTW, after long struggles and many fixes after fixing, we've got a version that works (as far as we tested) reliably and thus I've published it as a release: https://github.com/rugk/mastodon-simplified-federation/releases/tag/v2.0 I hope that helps you all and thanks a lot for being patient. As an additional thing, I could also solve #74, i.e. we've got an updated logo, too! 😊 (Though I've also stumbled across weird rendering bugs there hehe: #90) |
Background
Mastodon removed links to interact remotely and now asks you to just copy the link to the search box (which in my opinion greatly discourages decentralization).
Proposed solution
Inject HTML to rewrite the buttons...?
Alternatives
Right click menu...?
Additional context
The text was updated successfully, but these errors were encountered: