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

    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.

    Regardless this looks crazy good.

    • PopcornUnicorn@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Middle clicking a link (clicking with the mouse wheel) or ctrl clicking, opens links in a new tab.

      Middle clicking also closes a tab of you middle click on it.

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