• reddig33@lemmy.world
    link
    fedilink
    arrow-up
    187
    arrow-down
    2
    ·
    11 months ago

    It’s time to get rid of user-agent strings that declare anything other than desktop, mobile, or html version.

    • bigbluealien@kbin.social
      link
      fedilink
      arrow-up
      116
      ·
      11 months ago

      99% of sites only need to know your screen aspect ratio and maybe available input devices, can’t think of a good reason to share anything else

            • daFRAKKINpope@lemmy.world
              link
              fedilink
              arrow-up
              53
              arrow-down
              8
              ·
              11 months ago

              Let them be confused. They’ll learn eventually. Or they won’t. Computers are too user friendly today anyway.

              • 1371113@lemmy.world
                link
                fedilink
                arrow-up
                33
                arrow-down
                4
                ·
                11 months ago

                Fuckin oath. If we cater to the stupid too much the folks who are middling just get lazy. Make people think. It’s important that we know how to use our brains.

              • PoolloverNathan@programming.dev
                link
                fedilink
                English
                arrow-up
                9
                ·
                11 months ago

                It’s like undefined behavior - most people usually do one thing, but it’s perfectly acceptable for me to make my website as hard-to-use as I want. Ctrl-click the website logo to submit the form.

        • datelmd5sum@lemmy.world
          link
          fedilink
          arrow-up
          28
          ·
          edit-2
          11 months ago

          Microsoft hides their links if they see you run linux. So you need to manually set your OS in the browser settings to see the download link. Very convenient.

        • KptnAutismus@lemmy.world
          link
          fedilink
          arrow-up
          5
          arrow-down
          3
          ·
          11 months ago

          having 3 different ones solves that issue though? the user can figure out whic OS they’re running pretty well imo.

          • Godort@lemm.ee
            link
            fedilink
            arrow-up
            20
            arrow-down
            1
            ·
            11 months ago

            I can tell you’ve never had to do T1 tech support before.

            It’s kind of staggering just how illiterate users can be.

              • Strykker@programming.dev
                link
                fedilink
                arrow-up
                3
                ·
                11 months ago

                When you are competing for customers not providing the illiterate morons of the world a simple UI leads to them going to your competitor which does.

                And unfortunately those illiterate morons outnumber every one else by a significant chunk.

          • FlickOfTheBean@lemmy.world
            link
            fedilink
            arrow-up
            7
            ·
            edit-2
            11 months ago

            That’s a fair perspective, but most people strive for as few clicks between users and their targets as possible. Forcing a user to become semi-tech-competent by sending them on a fetch quest to figure out their os, while not an inherently bad thing, does work against this overall goal…

            Idk, it’s like education vs service industry goal setting, that’s all I’m trying to get at here lol

            Edit: plus, there’s no guarantee that it will remain just the big 3 for forever. There was a time before Linux, maybe we’ll see a time after windows… Unlikely, but one can dream lol

        • tiredofsametab@kbin.social
          link
          fedilink
          arrow-up
          11
          ·
          11 months ago

          Ideally, to save bandwidth on both sides, the server would only want to serve you the JS and CSS you need. I’m not sure how frequently that optimization is made, however.

          • catastrophicblues@lemmy.ca
            link
            fedilink
            arrow-up
            2
            ·
            11 months ago

            I’m a bit rusty on this, but I think you’d need to split your Sass/SCSS/etc before Webpack will perform tree-shaking or allow lazy-loading. I don’t think many devs wrote it that way: personally, I like my mobile rules beside my desktop ones, since my styling is component-wise.

        • bigbluealien@kbin.social
          link
          fedilink
          arrow-up
          4
          ·
          11 months ago

          Fair point, there could be reasons, and I’d say there’s no privacy concerns if that’s all they get, but I know it’s part of fingerprinting. I said 99% so they don’t even need to know that

      • cardboardchris@lemmings.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        11 months ago

        as a front end web developer, I’ve found it useful to know what user agent is requesting a page in order to load conditional styling. For example, to compensate for Safari’s god-awful outlines support (pre-version 16).

    • drathvedro@lemm.ee
      link
      fedilink
      arrow-up
      39
      arrow-down
      1
      ·
      11 months ago

      The biggest offender is, surprisingly, cloudflare. They will straight up refuse to serve you any site if your user agent is not one of the mainstream ones. It’s not even “find the traffic light to prove you’re human”, but a page basically saying “fuck you, go away”.

        • lseif@sopuli.xyz
          link
          fedilink
          arrow-up
          36
          arrow-down
          1
          ·
          11 months ago

          what is more likely to be a bot? a unique and trackable useragent for a semi-niche browser engine, or a vanilla Chromium+Windows which half of everyone uses ?

          • lud@lemm.ee
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            11 months ago

            Most semi and fully legitimate bots use a custom user agent.

            • lseif@sopuli.xyz
              link
              fedilink
              arrow-up
              5
              ·
              11 months ago

              what about malicious/unwanted bots? if cloudflare is trying to block bots, the bots will want to not look like bots. the easiest way to do that is to use a common user agent.

    • vlad@lemmy.sdf.org
      link
      fedilink
      arrow-up
      34
      arrow-down
      2
      ·
      edit-2
      11 months ago

      If I was a Firefox dev I’d start looking into building in user agent spoofing right into the browser.

      It already opens Facebook pages in a special isolated tab. They could have apple.com open in it’s own special “safari” tab. I wonder if there’s anything preventing them from doing that. I guess it could be bad because it would make their market share appear even smaller.