I don’t know if it’s possible on sh.itjust.works, or if it’s better to ask this to Lemmy devs directly, but would it be possible to detect and convert automatically links to communities and posts so that when clicking on them, we are redirected to them in sh.itjust.works view of them, being able to interact with them ?

Example: detect that c/[email protected] or [email protected] are lemmy community links, and so, HTMLify them to link to https://sh.itjust.works/c/[email protected]

Another example: c/[email protected] or [email protected] to be transformed as a link to https://sh.itjust.works/c/[email protected]

This does not need to know what url are lemmy or not, simply having an url beginning with “c/” or “/c/” or “!” and containing a “@” could be transformed to a clickable link, without needing the user to do copy paste and changing and stuff to access the link that can be provided by any other users on other federations

Current best way is for the user that post a message, to write the link in this format [some title](/c/xxx@fede.xx), other formats will not be recognized, and full urls beginning with http will change the website (so we are no more able to act).

  • @WanderA
    link
    fedilink
    English
    41 year ago

    Here is a userscript that makes this work:

    https://sh.itjust.works/post/33762 (just make sure to change the home instance variable).

    And also recommended, to find previously undiscovered communities when your instance gives you a 404 and fetch them for the first time: https://reddthat.com/post/69331

    You will need greasemonkey for firefox or tampermonkey for chrome. Plug those scripts in and they’ll do the work for you by rewriting the urls.