You get annoyed by having to enter your #Mastodon handle each time you want to follow/interact with someone on a "foreign" page?
I got that too, but I've made a little add-on to solve this "problem". 😃
It automatically "redirects" you to your own instance.
@switchingsocial Also, BTW, if you like it, vote for it and/or star it on GitHub. 🤗
Additionally, my add-on is open-source/free software.
And I try to use as few permissions as possible. (though that is hard in this case)
@Anoobispepega @rugk @switchingsocial you could also use https://addons.mozilla.org/en-US/firefox/addon/crxviewer/ for viewing the Firefox addon source
This is very cool! Actually I thought about writing such an extension because I think remote following and toot interaction is UX problem one on Fediverse.
Have you thought about making this into some kind of Fediverse protocol? For example by defining some kind of data-* attribute (https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes) that your extension would detect and allow interacting with.
Let’s say I have a blog and would like to provide a button “comment on fediverse” that when clicked would open Mastodon/Fediverse software with the link to my blog post filled-in search.
Or I’m writing a Fediverse software and would like to have nice “Follow me” buttons that when clicked would just work.
"Fediverse protocol": Currently it detects interaction by the URL you request. However, it already has support for redirecting *from* some other Fediverse instances.
Redirecting *to* other instances would be a hard task.
Blog: Possibly you may be able to do that already. Just make a button that sends the user to the same URL/params/POST etc. as Mastodon.
Note it only redirects follows and toot/etc, so no prefilling option. That is not the aim of the add-on…
@wiktor Also, requiring an add-on just for a website button would not work realistically. Websites are unlikely to adopt that.
This standard would have to be set by Mastodon. This add-on, after all, only "extends" Mastodon.
Other Fediverse software: Yes, possible. Get in touch with me (issue tracker would work), if you you'd do so./want support for a Fediverse platform.
Note some are easier to implement than others.
Yep, I’ve read the README but it’s still too high level.
The problem I’m seeing is that every other Fediverse software has their own URL scheme that you need to detect and support. Mastodon has https://$SERVER/users/$USER/remote_follow Pleroma has this, Friendica has that.
What if the follow buttons had some kind of marker attribute, let’s say <a data-fediverse-follow="$MY_URL" href="$SERVER/remote_follow">Follow me!</a> that you'd detect by content script (or elsewhere) hijack and redirect to own instance. If your extension is not enabled, the old logic kicks in. Of course that would require Fediverse software to adopt the attribute but it'd be a one-line change so I guess they wouldn’t object.
If someone wants to go fancy JSON-LD could be re-used to mark up HTML as “this URL points to an actor”.
My PoV is from someone that is writing Fediverse software and not being happy that there are N different ways to do the same thing one for each software :)
@wiktor Okay, so first of all, we should probably discuss this in a GitHub issue or so.
But generally: Yes, if we had something like this, I would also prefer that. (as an add-on too, not only from your ActivityPub dev 😉)
However, the problem I really see is whether this will be adopted. I doubt anyone would do so for a tiny add-on such a mine.
And to have it standardized would be good.
The best I can think of is things such as #microdata or so. (similar to Mastodon's use of rel="me").
I’ve created the following ticket: https://github.com/rugk/mastodon-simplified-federation/issues/31 for further discussion.
@rugk This is really cool! Good job!
@rugk This is great! Works wonderfully, thank you so much! 😍
This Mastodon instance is hosted in Germany and powered by 100% clean energy. Mastodon is a free and decentralized alternative to well-established social microblogging platforms like Twitter.
Please consider a dontation if you like this instance!