Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Browser
    • Mail
    • News
    • Community
    • About
    • Register
    • Login
    • Search
    CommunityForumHelpThemesWebmail
    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Feature Requests
    3. Mobile
    4. Remove device name from user agent

    Remove device name from user agent

    Mobile
    6
    8
    252
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dewey last edited by

      Or at least an option to set a custom or shorter user agent.

      For example:

      Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0

      looks better than

      Mozilla/5.0 (Linux; Android 9; SM-A202F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.137 Mobile Safari/537.36 Vivaldi/2.7.1624.163

      πŸ™‚

      LonM 1 Reply Last reply Reply Quote 8
      • LonM
        LonM Moderator @dewey last edited by

        @dewey The user agent shouldn't include the device name at all. This looks like a bad case for user tracking / fingerprinting.

        could you file a bug report for this please? https://vivaldi.com/bugreport/

        πŸ’» ⊞10 R5-2600 GTX1660Ti 16GB 64-bit Test Builds β€’ en fr β€’ πŸ—³ vote for features β€’ πŸ•΅οΈβ€β™€οΈ Code of Conduct β€’ 🐞 Report bugs β€’ πŸ’¬ Discord

        1 Reply Last reply Reply Quote 2
        • D
          dewey last edited by

          Reported as VB-57402

          LonM 1 Reply Last reply Reply Quote 0
          • LonM
            LonM Moderator @dewey last edited by

            @dewey said in Remove device name from user agent:

            VB-57402

            Thanks. I confirmed the bug in the tracker.

            πŸ’» ⊞10 R5-2600 GTX1660Ti 16GB 64-bit Test Builds β€’ en fr β€’ πŸ—³ vote for features β€’ πŸ•΅οΈβ€β™€οΈ Code of Conduct β€’ 🐞 Report bugs β€’ πŸ’¬ Discord

            1 Reply Last reply Reply Quote 0
            • sagrid
              sagrid last edited by

              The current UA format will stay put (I guess) perhaps due to some debug issues. However I noticed on latest Samsung Browser beta version that device OS detection forward in headers Android(SamsungBrowser) instead Android (Android)

              1 Reply Last reply Reply Quote 0
              • sagrid
                sagrid last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • A
                  alexcavaco last edited by

                  Hello,

                  Is there any info on how this bug report is?
                  I've tested my user agent now and the app is still leaking the device name.

                  I fear this might have privacy implications. Can you move this up on your priorities?

                  1 Reply Last reply Reply Quote 0
                  • M
                    murphybeck last edited by

                    User Agent detection is not a recommended technique for modern web apps. You can use JavaScript window.matchMedia() method to detect a mobile device based on the CSS media query.

                    if (window.matchMedia("(max-width: 767px)").matches)
                    {
                    // The viewport is less than 768 pixels wide
                    document.write("This is a mobile device.");
                    }
                    

                    Another approach would be a responsive media query. You could presume that a mobile phone has a screen size greater than x and less than y.

                    For example:

                    @media only screen and (min-width: 320px) and (max-width: 600px) {}
                    

                    You may also use navigator.userAgentData.mobile .

                    const isMobile = navigator.userAgentData.mobile;
                    
                    1 Reply Last reply Reply Quote 0
                    Loading More Posts
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes
                    • Reply as topic
                    Log in to reply
                    • 1 / 1
                    • First post
                      Last post

                    Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.

                    Copyright © Vivaldi Technologies™ β€” All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status