• Supervisor194@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    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 and put it right next to my Lemmy bookmark. 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.

    The only drawback is that it only works on the page you clicked it on, so subsequent tabs opened on lemmy (like self posts, user pages, etc) won’t behave the same - unless you click the button again.