This script transforms links from other instances to your home instance. So useful :)
As @MedicareForSome@lemmy.ml explained:
It makes it so that if you visit another instance using their URL, it will redirect you to your home version’s federated link.
E.g. if your home server is Lemmy.world, let’s say you find a link to Lemmy on another website but it’s a link to Lemmy.ml. If you click the link, you won’t be signed in.
So like:
https://lemmy.ml/c/memes would redirect to https://lemmy.world/c/memes@lemmy.ml
This way you can seamlessly use Lemmy.
It does the same for posts.
Edit: since it works from any site, I highly recommend you to add it to your Android browser so it will work with webapp clients here’s how:
You can use violentMonkey on ff browser too, but you need to unlock Dev options, then do this
Author here, any questions or issues can be directed to me :)
Tnx for your great work!
How do we get this into lemour?
I don’t know what that is and I can’t seem to find any relevant information doing a web search
Oh yeah sorry it’s called Jebora
I see. I think there are already efforts towards that. This is mainly supposed to be for the browser and not my domain.
And honestly, I don’t really get why you’d need an app if the official web UI works perfectly well on a mobile browser :)
- Better push notifications
- smaller scope for browser storage permission
- smoother (and more) animations
- better multi account support
I think there are even more reasons.
This is mainly supposed to be for the browser and not my domain.
What do you mean? I wanted it in an app, not domain spicific.
You’re in a thread about me answering questions for a browser extension, asking about a mobile app. I think it’s more appropriate to ask: what do you mean? I have nothing to do with a mobile app.
But its obviously a great functionality. We could think of setting it up as a proper library with good interfaces so you could just pull it into your code.
In the end we are making open source software to improve the platform, so you could also submit your algorithm to the projects.
I’m sorry I thought this thread is about asking questions and having a discussion about the feature and your code
Yeah, I just wish sopuli’s webapp wouldn’t crash on me immediately. It’s just feels a bit different when not full screened ^^
That’s weird, what browser do you have? I use Firefox for Android and everything is full screen and no crashes.
How does it detect that a link is a lemmy link? Also, does this work on any website or just lemmy? Can it also handle things like opening a link from an app outside of the browser?
You should look at the link this post points to, the description of the script answers 2/3 :D
- A link is detected by keeping a list of all instances and just matching them to that list. Currently contains 1188 instances sourced from https://lemmyverse.net/
- Yes, any website
- Yes, not immediately, but you get a “Show on [HOME INSTANCE]” link at the top
How it find posts tho?
It basically just asks your home server.
Would you mind explaining to me why i would want to do this? It’s a genuine question… i’m still learning Lemmy but do run my own instance just for my account.
It makes it so that if you visit another instance using their URL, it will redirect you to your home version’s federated link.
E.g. if your home server is Lemmy.world, let’s say you find a link to Lemmy on another website but it’s a link to Lemmy.ml. If you click the link, you won’t be signed in.
So like:
https://lemmy.ml/c/memes would redirect to https://lemmy.world/c/memes@lemmy.ml
This way you can seamlessly use Lemmy.
Though I’m not familiar with this particular script. Scripts should be verified for security before installation.
Not only that, it transform posts link as well, which is awesome!
That’s great… thank you… I’ve got it running but it’s not recognising my home instance right now.
deleted by creator
It’s more like you’ll have trouble opening some links without a script like this. It’s my understanding that the link points to a post through an instance. A script like this will link you to the same post through your own instance.
So it’s not that it’s preferred in some sort of etiquette way, but this script will make links work more effortlessly or at all
Disclaimer: I have absolutely no idea what I’m talking about. I’m only trying to convince myself that I understand what’s going on.
This
Hello there, and welcome to our community! I hope you like it in here.
Could you please include some body text as to why should people know this, and how would that help them? It’s our second rule. Thank you :)
Done
Is there a way to do it by manually? Like just change the url to match the instance that you want?
Is there any reason I should use ViolentMonkey vs TamperMonkey?
ViolentMonkey is open source, TamperMonkey is not.
You don’t have to, but it’d be a lot cooler if you did.
Lit, I’ll check it out
Yeah this is way better lol
deleted by creator
Is there an alternative for Android?
You can use violentMonkey on ff browser too, but you need to unlock Dev options, then do this
Edit: Maybe only available on Mull and ff nightly or something? Idk
very nice ty
is there any other script but for mastodon?
deleted by creator