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

12 points

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

permalink
report
reply
3 points
*
Deleted by creator
permalink
report
parent
reply
2 points

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 :)

permalink
report
parent
reply
2 points

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.)

permalink
report
parent
reply
2 points

downloaded and installed! Noice!

permalink
report
reply
2 points

Gonna try this out when I get home. Thank you, this has been bothering me.

permalink
report
reply
1 point

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

permalink
report
reply

Lemmy Plugins and Userscripts

!plugins@sh.itjust.works

Create post

A general repository for user scripts and plugins used to enhance the Lemmy browsing experience.

Post (or cross-post) your favorite Lemmy enhancements here!

General posting suggestions:

  • Preface the submission with the type of enhancement - ex: [UserScript].
  • Include a screenshot of the enhancement in use (where possible)
  • Indicate the requirements for use (eg, greasemonkey, stylus, etc.)

Thanks!

Community stats

  • 1

    Monthly active users

  • 86

    Posts

  • 540

    Comments