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

  • d4nm3d@demmy.co.uk
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago

    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.

    • MedicareForSome@lemmy.ml
      link
      fedilink
      arrow-up
      21
      ·
      1 year ago

      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.

      • d4nm3d@demmy.co.uk
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        That’s great… thank you… I’ve got it running but it’s not recognising my home instance right now.

      • Sparky678348@lemm.ee
        link
        fedilink
        arrow-up
        16
        ·
        edit-2
        1 year ago

        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.