javascriptgoogle-chromefirefoxmicrosoft-edgeuser-agent

Can I determine from JavaScript or from the user-agent string if browser is "Developer" version?


Chrome, Mozilla and MS-Edge all have "Developer" versions of their products ... essentially early release versions.

Can I tell from JavaScript if a browser is a "Developer" version? The "User-Agent" strings do not explicitly say "dev" or "developer". An on-line database may have that information but I have not been able to find one that does.

Reason: I would like to display diagnostic info if a user is accessing a page using a "Developer" version of a browser. Our regular users are not able to install "Developer" browser versions.

For clarification, I'm not talking about the browser's Developer / Javascript debugger (F12 or CTRL-SHIFT-I) tools. I'm talking about special pre-release versions of the browser. Developers have slightly elevated privileges on corporate laptops which allow them to download and install these versions. Regular users can't do that.


Solution

  • I think I can determine the user ID or a group ID within the application and show the diagnostic info if user is in a "Developer" or "Admin" group. The problem is that real-world (outside the app) group affiliations regularly change but in-app group memberships are not well maintained.