Posts on NSFW communities on Burggit are inaccessible to visitors of the site who are not logged in, meaning these communities can only be browsed pseudonymously. There are two reasons why I think this restriction should be lifted:

  1. Security and privacy: Some people on the internet may wish not for their browsing habits to be connected to an account and may wish to minimise identifiers. Some browse the internet with cookies disabled. Some have to live paranoidly on the internet due to where they live and other life situation reasons, and these people won’t be able to enjoy the NSFW communities on Burggit.
  2. Discoverability: To check out NSFW communities, people have to register an account, so it’s not possible to make a decision after seeing if you like the instance. Previously, you could browse Burggit’s NSFW communities on lemmynsfw.com without an account but after they defederated, this isn’t an option either. There might be other instances you can use now, but it’s not a good idea to count on other instances for this purpose.

I’m curious about what you think about this.

  • EldritchBagel@burggit.moe
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    I hope that code gets adopted into main in some form eventually. The only thing I miss from lemmyNSFW are the auto-expand / no blur images options.

    Also +1 for the ability to browse as an anon. That was one of my favorite features of the Infinity app I used to use. Also had an option to require a pin on unlock for mobile.

      • EldritchBagel@burggit.moe
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Ah yes. I’m currently using it! Thank you for that. Images are still small, but it’s a huge improvement!

        • Nazrin@burggit.moe
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          There ought to be a way with tampermonkey to auto expand images, you just have to learn some css.

            • burganon@burggit.moeOP
              link
              fedilink
              English
              arrow-up
              4
              ·
              1 year ago
              // ==UserScript==
              // @name    Expand Images
              // @match   https://burggit.moe/*
              // ==/UserScript==
              
              // Permission to use, copy, modify, and/or distribute this software for
              // any purpose with or without fee is hereby granted.
              
              const alreadyExpanded = new Set();
              
              // Start the script
              poll();
              
              function poll() {
                expand();
                setTimeout(poll, 200);
              }
              
              function expand() {
                const thumbnails = document.querySelectorAll("button.thumbnail");
                for (const t of thumbnails) {
                  const url = getImgUrl(t);
                  if (alreadyExpanded.has(url)) {
                    continue;
                  }
                  t.click();
                  alreadyExpanded.add(url);
                }
              }
              
              function getImgUrl(thumbnail) {
                return thumbnail.firstChild.firstChild.attributes[0].value;
              }
              

              Here’s a little script that simulates clicking the thumbnail (so it loads a higher quality image). Is this any better?

              • EldritchBagel@burggit.moe
                link
                fedilink
                English
                arrow-up
                3
                ·
                edit-2
                1 year ago

                Yes! This is perfect and exactly what I was looking for. You da MVP.

                Edit: Ok, after browsing for a bit, it doesn’t seem to like switching between tabs like subscribed and local much, or posts that have already been viewed once might become blurry and small again. But I can live with that.

                • burganon@burggit.moeOP
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  edit-2
                  1 year ago

                  I’m glad you find it useful! I simplified it and it seems like images expand consistently when navigating between tabs this time. How is it for you now?

                  // ==UserScript==
                  // @name    Expand Images
                  // @match   https://burggit.moe/*
                  // ==/UserScript==
                  
                  // Permission to use, copy, modify, and/or distribute this software for
                  // any purpose with or without fee is hereby granted.
                  
                  // Start the script
                  poll();
                  
                  function poll() {
                    expand();
                    setTimeout(poll, 200);
                  }
                  
                  function expand() {
                    const posts = document.querySelectorAll("div.post-listing");
                    for (const post of posts) {
                      const imgThumbnail = post.querySelector("button.thumbnail");
                      const isImage = imgThumbnail !== null;
                      const isExpanded = post.childElementCount > 2;
                      if (isImage && !isExpanded) {
                        imgThumbnail.click();
                      };
                    }
                  }