DiagnosticsUserAgentStringManager object

Object providing properties and methods to manage User Agent strings from the Diagnostics Object Model.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

var oUAManager = Emulation.DiagnosticsUserAgentStringManager;

DOM Information

Inheritance Hierarchy

The DiagnosticsUserAgentStringManager does not inherit from any class or interface.

Members

The DiagnosticsUserAgentStringManager object has these types of members:

  • Methods
  • Properties

Methods

The DiagnosticsUserAgentStringManager object has these methods.

Method Description
addCustom

Adds a custom user agent (UA) string with a category of "Custom" into the collection of UA strings.

removeCustom

Remove a custom user agent string (UA) from the collection of UA strings.

setCurrentToDefault

Removes any applied value from the current User Agent string, and resets it to the default for the page.

 

Properties

The DiagnosticsUserAgentStringManager object has these properties.

Property Access type Description

all

Read-only

Returns a list of objects representing the available defined user agent (UA) strings for selection.

current

Read/write

Sets or gets the currently active user agent (UA) string.