From 6749f625284649201c3a04d4821b339d13be1c23 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Tue, 10 May 2016 23:25:38 +0300 Subject: [PATCH 1/3] add Chromium detecting related to #94 --- src/bowser.js | 7 +++++++ src/useragents.js | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/bowser.js b/src/bowser.js index be555e0..adb1130 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -227,6 +227,13 @@ , version: getFirstMatch(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i) || versionIdentifier } } + else if (/chromium/i.test(ua)) { + result = { + name: 'Chromium' + , chromium: t + , version: getFirstMatch(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i) || versionIdentifier + } + } else if (/chrome|crios|crmo/i.test(ua)) { result = { name: 'Chrome' diff --git a/src/useragents.js b/src/useragents.js index 3d16b84..c5e6b33 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -1238,4 +1238,14 @@ module.exports.useragents = { , x: true } } + , 'Chromium': { + 'Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36': { + mobile: true + , linux: true + , chromium: true + , version: '35.0' + , blink: true + , x: true + } + } } From e817fd67a7156c146299148fef31f1800623bb62 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 19 May 2016 00:57:34 +0300 Subject: [PATCH 2/3] add SlimerJS support close #141 --- src/bowser.js | 7 +++++++ src/useragents.js | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/src/bowser.js b/src/bowser.js index adb1130..d966269 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -191,6 +191,13 @@ , version: getFirstMatch(/phantomjs\/(\d+(\.\d+)?)/i) } } + else if (/slimerjs/i.test(ua)) { + result = { + name: 'SlimerJS' + , slimer: t + , version: getFirstMatch(/slimerjs\/(\d+(\.\d+)?)/i) + } + } else if (/blackberry|\bbb\d+/i.test(ua) || /rim\stablet/i.test(ua)) { result = { name: 'BlackBerry' diff --git a/src/useragents.js b/src/useragents.js index c5e6b33..0ffea38 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -1248,4 +1248,13 @@ module.exports.useragents = { , x: true } } + , 'SlimerJS' : { + 'Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 SlimerJS/0.7': { + linux: true + , slimer: true + , version: '0.7' + , gecko: true + , x: true + } + } } From 0e1ae7b8c9b97326291f38b92424f579a9dc0c08 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Thu, 19 May 2016 00:59:41 +0300 Subject: [PATCH 3/3] version bump --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 870f0da..b68f116 100644 --- a/bower.json +++ b/bower.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.2.0", + "version": "1.3.0", "homepage": "https://github.com/ded/bowser", "scripts": [ "src/bowser.js" diff --git a/package.json b/package.json index 5b2d61e..dbceb85 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "sniff", "detection" ], - "version": "1.2.0", + "version": "1.3.0", "homepage": "https://github.com/ded/bowser", "author": "Dustin Diaz (http://dustindiaz.com)", "main": "./src/bowser.js",