99
Announcing FediRedirect! (addons.mozilla.org)
submitted 1 year ago* (last edited 1 year ago) by ManeraKai@programming.dev to c/fediverse@lemmy.ml

FediRedirect is a browser extension that redirects you to your favorite instance.

It currently supports:

cross-posted from: https://programming.dev/post/587204

top 30 comments
sorted by: hot top controversial new old
[-] flat@reddthat.com 17 points 1 year ago

missed opportunity to call it fedirect

[-] Eggyhead@kbin.social 9 points 1 year ago
[-] GuyDudeman@lemmy.ml 7 points 1 year ago

I can only get so federect!

[-] ManeraKai@programming.dev 4 points 1 year ago

It's analogous to the name LibRedirect so.

[-] tartarsauce@lemmy.fmhy.ml 7 points 1 year ago

Another awesome extension from the people behind LibRedirect :D

(definitely check that one out, it redirects big corpo sites to privacy-friendly frontends, eg. twitter to nitter, reddit to libreddit, yt to invidious etc. can't live without it)

[-] _calm_bomb_@lemmy.ml 5 points 1 year ago

@ManeraKai@programming.dev the cross-post link is something different. :-D

[-] ManeraKai@programming.dev 4 points 1 year ago
[-] boerbiet@feddit.nl 4 points 1 year ago

Sweet. I just used the extension to go from lemmy.world to feddit.nl so I could upvote 🦊

[-] SSUPII@sopuli.xyz 3 points 1 year ago

Doesn't seem to be working every time, and when it does I am appearing logged out. Also, why does it require my login credentials.

[-] GuyDudeman@lemmy.ml 4 points 1 year ago

So it can steal your credentials and hack your accounts! Duh!

[-] ManeraKai@programming.dev 2 points 1 year ago

Some redirections aren't supported (bc Mastodon isn't fully compatible with Lemmy), and sometimes it doesn't work bc of a server problem (your instance doesn't federate with that link's instance). However, FediRedirect is still in beta, open any issue here: https://github.com/ManeraKai/fediredirect.

Also, why does it require my login credentials.

For lemmy:
(Username and Password) or (jwt) are required for resolving /post and /comment. If Username and Password didn't work, go to your instance's cookies and copy your jwt.

Same for mastodon, but it only has the read:search permission (scopes aren't implemented in Lemmy yet)

[-] aral@mastodon.ar.al 3 points 1 year ago

@ManeraKai So if I get this right, you can use this to redirect links to other mastodon servers so that you end up on your own server where you can interact with it, right?

(Can’t wait to try it out, thanks.) :)

[-] Prootje@kbin.social 3 points 1 year ago

What is the intended use case?

[-] ManeraKai@programming.dev 7 points 1 year ago
  • Say a friend sent you a lemmy.world link, you want to reply to it but you only have a programming.dev account, so you redirect the link to programming.dev that has your account.
  • Say a friend sent you a lemmy link, but you only have an account in kbin, so you redirect to kbin (kbin is not implemented yet).
  • You want to see a post in your own instance's UI and Theme.
  • You want to use Pleroma's UI not Mastodon's UI and vise versa.
[-] Prootje@kbin.social 2 points 1 year ago

Pretty new to this, but isnt the power of the fediverse that you can use whatever you like and connect to other instances?

If i want to see mastodon content in pleroma, you can subscribe to the users from Pleroma?

Like i use KBin to view this, because of the ability to view both Lemmy and Mastodon content. But Ive seen people link to pixelfed users and that works too

[-] ManeraKai@programming.dev 2 points 1 year ago* (last edited 1 year ago)

All you said is true if you are browsing through your instance, but if you were browsing another instance's website and saw a post or if someone sent you a link to a post in an instance you don't use, then you should figure out a way to see that post through your instance. In Mastodon, you go to search and paste the post link. In Lemmy, you do something similar. Those can be done but are quite tedious. This problem is what FediRedirect aims to make solving it more convenient.

[-] Prootje@kbin.social 2 points 1 year ago

Thanks for he explanation, should be handy for those who need it

[-] cuchilloc@lemmy.world 1 points 1 year ago

kbin to lemmy is not implemented yet, right? trying to get this over at lemmy.world but nothing is happening. Also I do not understand the user/pass/jwt. If I just want to open say posts on my instance, is it required that I add it?

[-] ManeraKai@programming.dev 1 points 1 year ago* (last edited 1 year ago)

For user/password/jwt, it's needed to find the post id and the comment id in your instance's database. No instance will offer you free post/comment id search unless you happen to be a user.

Yes kbin is still not supported, I actually tried implementing it today but it doesn't have a proper sesrch API like lemmy (finding a federated post id in my local instance's databse). Kbin is still in beta so.

[-] YMS@kbin.social 1 points 1 year ago

You click a link to some fediverse content somewhere, and actually land on the instance where you have a login and can interact with it.

[-] 3v1n0@feddit.it 2 points 1 year ago

It would be nice to have also an user script version of it so that it can be easily used with Firefox mobile (that does not allow all extensions yet, but it does support scripts via tempermonkey)

[-] Deez@lemm.ee 2 points 1 year ago

Nice! I’d like to build a iOS Shortcut to do the same thing. How does it map the correct post on your own instance?

[-] ManeraKai@programming.dev 1 points 1 year ago

How does it map the correct post on your own instance?

for Lemmy it primarily uses the API endpoint /resolve_object

[-] Deez@lemm.ee 1 points 1 year ago

Thanks very much for the link, I’ll read into the API doco further.

[-] PoorPocketsMcNewHold@lemmy.ml 1 points 1 year ago

Sweet. One does all. I believe you are planning on foing such for other Fediverse applications in the likes of Peertube ? Either way, it covers the more interesting cases which is lemmy & Mastodon for me.

[-] ManeraKai@programming.dev 2 points 1 year ago

Yes, also Pleroma, Misskey, and all the other fediverse applications.

[-] narF@lemmy.ca 1 points 1 year ago* (last edited 1 year ago)

It doesn't work. I entered my infos for both Lemmy and Mastodon, but when I select either Redirect buttons in the menu, nothing happens. (no error messages or anything) Any idea what I'm doing wrong?

[-] ManeraKai@programming.dev 1 points 1 year ago

What link you were trying to redirecti? And open an issue here for better tracking: https://github.com/ManeraKai/fediredirect/issues

[-] narF@lemmy.ca 1 points 1 year ago

I tried it again it it worked. Probably just a hiccup.

load more comments
view more: next ›
this post was submitted on 12 Jul 2023
99 points (99.0% liked)

Fediverse

17790 readers
1 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 5 years ago
MODERATORS