This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

What are the UserAgent and oscpu strings sent by Firefox 99 running on macOS 12.3.1 Monterey?

  • 2 replies
  • 1 has this problem
  • 6 views
  • Paskiausią atsakymą parašė cor-el

more options

I would like to know how macOS 12.3.1 Monterey is described in the userAgent and oscpu strings by Firefox 99. If you have Firefox 99 running on macOS 12.3.1 Monterey, type "navigator.userAgent" and "navigator.oscpu" on the Web Console of the Firefox (more explanation later) to obtain their values locally. (It is April, 2022, now. If you happen to read this post months or years after this was posted, and if you have newer versions of macOS and Firefox, you are welcome to report the newer values together with the versions of macOS and Firefox.)

I would like to know the default values of userAgent and oscpu, but NOT your own customized values of them. To check whether you have customized them, type "about:config" (without quotes) (followed by Enter) into the address bar of Firefox, and type "general.useragent.override" (without quotes) into the Search Preference. If the "Boolean", "Number" and "String" radio buttons and the "+" button appear, then that means that there is no custom value created for "userAgent". If there is a custom value for "userAgent" and if you wish to delete it to restore the default value, then click the Trash Can icon on the far right of "general.useragent.override".

For oscpu, type "general.oscpu.override" (without quotes) into the Search Preference. Then, do likewise as userAgent.

Once it is verified that there are no custom values for userAgent and oscpu, then it is time to obtain their values by Web Console. Open the Web Console as follows.

   Menu button > More tools > Web Developer Tools > Console


When "Web Developer Tools" opens, a row of tabs appear:

   Inspector  Console  Debugger  Network  Style Editor ...


Select the Console tab, which is the Web Console. Once the Web Console opens, then, at the ">>" prompt, type "navigator.userAgent" (without quotes) followed by Enter. Its value is displayed. Also type "navigator.oscpu".

There is another method to obtain the values of userAgent and oscpu, without Web Console.

   
userAgent: 
oscpu: 
   <script>
   document.getElementById("userAgent").innerHTML = navigator.userAgent;
   document.getElementById("oscpu").innerHTML = navigator.oscpu;
   </script>
   

Copy the above HTML code, and paste it into a blank document of text editor, and save it as plain text with the name "navigator_values.htm". [edit: I tried to present an HTML code above. However, this web page does not properly display the code. It dropped most of the code.] Make sure that JavaScript is enabled on Firefox. Open "navigator_values.htm" with Firefox, then the values of userAgent and oscpu are displayed.



For "navigator.userAgent" and "navigator.oscpu", you might want to see the following.

- https://docs.w3cub.com/dom/navigator/useragent

- https://docs.w3cub.com/dom/navigator/oscpu.html

Thank you in advance.

I would like to know how macOS 12.3.1 Monterey is described in the userAgent and oscpu strings by Firefox 99. If you have Firefox 99 running on macOS 12.3.1 Monterey, type "navigator.userAgent" and "navigator.oscpu" on the Web Console of the Firefox (more explanation later) to obtain their values locally. (It is April, 2022, now. If you happen to read this post months or years after this was posted, and if you have newer versions of macOS and Firefox, you are welcome to report the newer values together with the versions of macOS and Firefox.) I would like to know the default values of userAgent and oscpu, but NOT your own customized values of them. To check whether you have customized them, type "about:config" (without quotes) (followed by Enter) into the address bar of Firefox, and type "general.useragent.override" (without quotes) into the Search Preference. If the "Boolean", "Number" and "String" radio buttons and the "+" button appear, then that means that there is no custom value created for "userAgent". If there is a custom value for "userAgent" and if you wish to delete it to restore the default value, then click the Trash Can icon on the far right of "general.useragent.override". For oscpu, type "general.oscpu.override" (without quotes) into the Search Preference. Then, do likewise as userAgent. Once it is verified that there are no custom values for userAgent and oscpu, then it is time to obtain their values by Web Console. Open the Web Console as follows. Menu button > More tools > Web Developer Tools > Console When "Web Developer Tools" opens, a row of tabs appear: Inspector Console Debugger Network Style Editor ... Select the Console tab, which is the Web Console. Once the Web Console opens, then, at the ">>" prompt, type "navigator.userAgent" (without quotes) followed by Enter. Its value is displayed. Also type "navigator.oscpu". There is another method to obtain the values of userAgent and oscpu, without Web Console. <HTML><HEAD></HEAD><BODY> <table> <tr><td>userAgent:&nbsp;</td><td id="userAgent"></td></tr> <tr><td>oscpu:&nbsp;</td><td id="oscpu"></td></tr> </table> <script> document.getElementById("userAgent").innerHTML = navigator.userAgent; document.getElementById("oscpu").innerHTML = navigator.oscpu; </script> </BODY></HTML> Copy the above HTML code, and paste it into a blank document of text editor, and save it as plain text with the name "navigator_values.htm". [edit: I tried to present an HTML code above. However, this web page does not properly display the code. It dropped most of the code.] Make sure that JavaScript is enabled on Firefox. Open "navigator_values.htm" with Firefox, then the values of userAgent and oscpu are displayed. For "navigator.userAgent" and "navigator.oscpu", you might want to see the following. - https://docs.w3cub.com/dom/navigator/useragent - https://docs.w3cub.com/dom/navigator/oscpu.html Thank you in advance.

Modified by firm84auv

All Replies (2)

more options

I wrote an HTML code in my original post. However, this web page failed to properly display the code. It dropped most of the code. So, I am trying to post the code here. This time, I have replaced angle brackets <> with curly braces {}, and replaced each ampersand '&' with a tilde '~'. Thus, you will need to re-replace {} with <>, and ~ with &, when you use the code.


{HTML}{HEAD}{/HEAD}{BODY} {table} {tr}{td}userAgent:~nbsp;{/td}{td id="userAgent"}{/td}{/tr} {tr}{td}oscpu:~nbsp;{/td}{td id="oscpu"}{/td}{/tr} {/table} {script} document.getElementById("userAgent").innerHTML = navigator.userAgent; document.getElementById("oscpu").innerHTML = navigator.oscpu; {/script} {/BODY}{/HTML}

Modified by firm84auv

more options

You can paste navigator.oscpu and navigator.userAgent in the Web Console.

prompt("oscpu: "+navigator.oscpu +"\nuserAgent: "+navigator.userAgent,navigator.oscpu+"/"+navigator.userAgent);