Namespace bot.userAgent

code »
Show:

Global Functions

Whether the rendering engine version of the current browser is equal to or greater than the given version. This implementation differs from goog.userAgent.isVersion in the following ways:

  1. in a Firefox extension, tests the engine version through the XUL version comparator service, because no window.navigator object is available
  2. in IE, compares the given version to the current documentMode
Parameters
version: (string|number)
The version number to check.
Returns
Whether the browser engine version is the same or higher than the given version.

Whether the product version of the current browser is equal to or greater than the given version. This implementation differs from goog.userAgent.product.isVersion in the following ways:

  1. in a Firefox extension, tests the product version through the XUL version comparator service, because no window.navigator object is available
  2. on Android, always compares to the version to the OS version
Parameters
version: (string|number)
The version number to check.
Returns
Whether the browser product version is the same or higher than the given version.

Global Properties

Whether the current browser is Android pre-gingerbread.

Whether the current browser is Android pre-icecreamsandwich

Android Operating System Version.

Whether we are in a Firefox extension.

When we are in a Firefox extension, this is a function that accepts a version and returns whether the version of Gecko we are on is the same or higher than the given version. When we are not in a Firefox extension, this is null.

When we are in a Firefox extension, this is a function that accepts a version and returns whether the version of Firefox we are on is the same or higher than the given version. When we are not in a Firefox extension, this is null.

Whether the current document is IE in IE10 (or newer) standards mode.

Whether the current document is IE in IE9 (or newer) standards mode.

Whether the current document is IE in a documentMode older than 10.

Whether the current document is IE in a documentMode older than 8.

Whether the current document is IE in a documentMode older than 9.

Whether we are on IOS.

Whether we are on a mobile browser.

Whether the current browser is Safari 6.

Whether the current browser is Windows Phone.