I’m on sh.itjust.works, but I wanna browse local posts on lemmy.world from my own instance without using their url. Is there such a feature?

  • GodOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    thank you, this solves half of it, basically it automates what i said i did, but only from the community url

    in basic terms, it does this:

    https://lemmy.world/c/lemmyworld

    1. it splits by /, means it will get this:
    [
      "https:",
      "",
      "lemmy.world",
      "c",
      "lemmyworld"
    ]
    
    1. it grabs the third one (instance variable) and the 5th one (the community)
    2. it creates a new url: https://${yourCommunity}/c/${variableCommunity}@${instance}
    3. it redirects the url to the new url.

    however, it relies on the url which means that posts will not work. Your comment for example is https://sh.itjust.works/comment/57083, but it’s a different number on lemmy.world, which means i have no reliable way to make a bookmarklet to just take the number and make a new url. I’d need some other way to see a unique identifier that is usable across instances.