I put this together based on another very similar script (attributed, of course) I found on beehaw that forces external links to open in a new tab. Should work on every Lemmy instance by checking the header. While it uses http*://*/* as the match, it only executes any logic if the isLemmy check returns true.

Honestly, this has improved my desktop experience significantly, it was killing me before.

Hope it helps, feedback/suggestions/contributions welcome!

git link: https://github.com/Djones4822/GM-Lemmy-newTab

  • Dogeek
    link
    fedilink
    121 year ago

    Just so you know I’ve been working on adding that functionality into lemmy for the past couple of days, as a user setting.

    • @[email protected]
      link
      fedilink
      English
      31 year ago

      I’m glad someone is taking care of this. My first post on Lemmy, to thank you! (I have always hated the way links were handled in Reddit. IMO the user experience was pretty bad.)

    • @[email protected]
      link
      fedilink
      2
      edit-2
      1 year ago

      Thank you in advance for that effort! It will be a useful setting that I intend to enable :) (or disable depending on the implementation) automatic opening in new tab, WooHoo!

      • Dogeek
        link
        fedilink
        English
        21 year ago

        the hardest part is actually understanding the rust backend. I understand the choice the devs made (I mean performance wise rust is unbeatable) but it’s a bit of a nightmare to work with when you’re not used to it :)

    • @LimeeyOP
      link
      11 year ago

      hopefully they merge it!

  • TCGM
    link
    21 year ago

    This has been a pretty large aggravation for me, so thank you for making this script!

    • @LimeeyOP
      link
      21 year ago

      Should work on every lemmy instance too!

  • @wiltur
    link
    11 year ago

    thanks you ! this should be a native a settings in lemmy.