20
submitted 1 year ago* (last edited 1 year ago) by Limeey@lemmy.world to c/plugins@sh.itjust.works

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

all 7 comments
sorted by: hot top controversial new old
[-] Dogeek@sh.itjust.works 12 points 1 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.

[-] Yetix@sh.itjust.works 2 points 1 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.)

[-] Hanabie@sh.itjust.works 2 points 1 year ago

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

downloaded and installed! Noice!

[-] wiltur@lemmy.world 1 points 1 year ago

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

this post was submitted on 22 Jun 2023
20 points (100.0% liked)

Lemmy Plugins and Userscripts

2149 readers
1 users here now

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:

Thanks!

founded 1 year ago
MODERATORS