Follow

You get annoyed by having to enter your 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.

addons.mozilla.org/firefox/add

@switchingsocial

@switchingsocial Also, BTW, if you like it, vote for it and/or star it on GitHub. 🤗

@rugk @switchingsocial
That's cool, but how do we know that the add-on is not malicious?

@Anoobispepega you can check the code on Github and / or build it yourself from source. :-)

@rugk @switchingsocial

@Anoobispepega @switchingsocial All add-ons on AMO are reviewed.

Additionally, my add-on is open-source/free software.

And I've even got a privacy policy: addons.mozilla.org/firefox/add

And I try to use as few permissions as possible. (though that is hard in this case)

@caltlgin @Anoobispepega @switchingsocial or you just look at the source on GitHub 😉 (or compare it… whatever… 😉)

@DotConfig @switchingsocial a good idea, I guess. (although I have to wrap my head around how that should actually work in the end)

So best please open an issue on GitHub and describe that a little more in detail. 😃

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.

@wiktor
"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.

@wiktor
Also, I encourage you to read the Readme on GitHub. It explains how the add-on works.

github.com/rugk/mastodon-auto-

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 or so. (similar to Mastodon's use of rel="me").

@rugk @switchingsocial

Really cool! You can also copy paste the adress into the searchbar to do yer business too!

@rugk This is great! Works wonderfully, thank you so much! 😍

Sign in to participate in the conversation
social.wiuwiu.de - Mastodon

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!