lemmy.world

I think the only thing that’s really missing for me and not just from old.lemmy.world but from the normal Lemmy UI. The ability to have clicking on links open in a new tab. I don’t know why but I just really like having stuff open in a new tab so I can then come back to exactly where I left off.

Oh hey, I’m not alone! So I made a bookmarklet that fixes this. Make sure endless scroll is checked, then create a new bookmark and put it on your toolbar. Give the bookmark a name, I just use “>” on mine. Cut and paste this javascript into the bookmark’s URL:

javascript:(function(){var l=document.getElementsByTagName(‘a’);for(var i=0; i<l.length; i++){if(l[i].href.indexOf(‘&page=’)==-1){l[i].target=‘_blank’;}}window.onscroll = function(){var l=document.getElementsByTagName(‘a’);for(var i=0; i<l.length; i++){if(l[i].href.indexOf(‘&page=’)==-1){l[i].target=‘_blank’;}}};})();

When old.lemmy loads, click the bookmark, and links will behave like you are used to on reddit.

Awesome! This worked with tamper monkey so it gets applied automatically. Thanks :)
Oh, great! Not a tamper/greasemonkey user, but good to know for anyone else watching that it can work seamlessly that way. Cheers!