1
0
mirror of https://github.com/lancedikson/bowser synced 2024-09-28 22:30:44 +00:00
Commit Graph

224 Commits

Author SHA1 Message Date
Alexander Lukin
134aeede53 add support for optional ua parameter 2016-06-16 16:01:45 +03:00
Alexander Lukin
c30f6d41d9 fix isUnsupportedBrowser documentation 2016-06-16 13:49:18 +03:00
Alexander Lukin
43ac868d84 export bowser.check 2016-06-16 13:45:24 +03:00
Alexander Lukin
ec7531e8cb remove @see jsbin comment 2016-06-16 13:43:48 +03:00
Alexander Lukin
24b91a4dab fix comments 2016-06-16 13:41:21 +03:00
Alexander Lukin
c77cf0ae1b refactoring: use map instead of direct Array::map 2016-06-16 13:39:05 +03:00
Alexander Lukin
b51a35e006 add Array::map polyfill to compatible with es4 2016-06-16 13:38:25 +03:00
Alexander Lukin
c9eed902e3 add check method 2016-06-16 13:07:46 +03:00
Alexander Lukin
57a45d1dee fix comments 2016-06-16 13:07:46 +03:00
kerbyfc
6715bb2b08 Implement isUnsupportedBrowser method
See http://jsbin.com/vohahaciku/1/edit?js,console
2016-06-16 13:07:35 +03:00
Denis Demchenko
e817fd67a7 add SlimerJS support
close #141
2016-05-19 00:57:34 +03:00
Denis Demchenko
6749f62528 add Chromium detecting
related to #94
2016-05-10 23:25:56 +03:00
Denis Demchenko
542277ceb7 add Xbox detection
#fix 139
2016-05-09 10:40:47 +03:00
Denis Demchenko
277202172b add some browsers from #73
fix #73
2016-05-09 10:18:11 +03:00
Denis Demchenko
891f98100f add Puffin detection
fix #68
2016-05-09 10:02:20 +03:00
Denis Demchenko
78ee04fa37 fix Android tablet detection
fix #136
2016-05-09 09:45:18 +03:00
Denis Demchenko
b9edb72e2f add Epiphany browser
fix #130
2016-05-09 09:18:00 +03:00
Denis Demchenko
40fc55f393 add blink flag when we can suppose it
fix #134
2016-05-09 09:06:32 +03:00
Denis Demchenko
d6fb6d5358 fix order: Chrome should be almost lowest, but before Safari 2016-05-08 15:08:19 +03:00
Denis Demchenko
4ac5b4e14d add Opera Coast detection
fix #133
2016-05-08 14:58:18 +03:00
Denis Demchenko
0b120a860c add tests for UC Browser on iOS 2016-05-08 14:41:55 +03:00
Denis Demchenko
e55dd78792 add support of Maxthon browser on iOS 2016-05-08 14:37:10 +03:00
Denis Demchenko
35f635b845 add iOS Safari and Chrome to the tests 2016-05-08 14:27:24 +03:00
Denis Demchenko
62745525df add support firefox for iOS 2016-05-08 14:24:36 +03:00
Denis Demchenko
197c203e11 fix Safari browser name on iOS 2016-05-07 18:55:19 +03:00
Denis Demchenko
83182d28a0 add iOS 9 support
fix #132
2016-05-07 15:57:04 +03:00
Denis Demchenko
0abf17a0c4 fix main file in package managers specs 2016-05-06 21:45:03 +03:00
Denis Demchenko
80af774724 remove minified file from git 2016-05-06 21:29:22 +03:00
Denis Demchenko
5b67843977 add nexus mobile to detection 2016-04-16 19:00:31 +03:00
Denis Demchenko
71b69e822d Merge branch 'fix-nexus-mobile-tablet' of git://github.com/daemon1981/bowser into daemon1981-fix-nexus-mobile-tablet 2016-04-16 18:54:58 +03:00
Denis Demchenko
31805826f3 Merge branch 'vivaldi-support' of git://github.com/pokono/bowser into pokono-vivaldi-support
# Conflicts:
#	README.md

merging #120
2016-04-16 18:53:36 +03:00
Denis Demchenko
e5a4bf15bc Merge branch 'QupZilla' of git://github.com/yconoclast/bowser into yconoclast-QupZilla
# Conflicts:
#	README.md
#	src/useragents.js
2016-04-15 00:01:11 +03:00
Denis Demchenko
ffe414a319 Merge branch 'yconoclast-ucbrowser' into develop
# Conflicts:
#	src/useragents.js
2016-04-14 23:45:04 +03:00
Denis Demchenko
468cf69679 Merge branch 'ucbrowser' of git://github.com/yconoclast/bowser into yconoclast-ucbrowser
# Conflicts:
#	src/bowser.js
2016-04-14 23:43:37 +03:00
Denis Demchenko
a763bb43e5 Merge branch 'master' of git://github.com/weo-edu/bowser into weo-edu-master
# Conflicts:
#	bowser.js
#	bowser.min.js
#	src/bowser.js
#	src/useragents.js
2016-04-14 23:25:31 +03:00
Damien Saillard
ad0e2ee636 fix eventual nexus 0 to 3 being mobile 2016-01-27 14:23:38 +01:00
Damien Saillard
6f151970bf fix nexus 7 to 9 considered as a mobile 2016-01-27 10:14:11 +01:00
Ivan Carosati
23697032da Added support for grade a. 2015-12-07 16:19:56 -05:00
Ivan Carosati
b98e37c6ac Vivaldi version number is now parsed correctly. 2015-12-07 16:17:10 -05:00
Ivan Carosati
b01795c475 Fixed typo. 2015-12-07 16:13:48 -05:00
Ivan Carosati
14f16d6120 Trying to get version number to validate. 2015-12-07 16:12:18 -05:00
Ivan Carosati
fb5ddeadcb Added Vivaldi case. 2015-12-07 16:09:18 -05:00
Ivan Carosati
80d0934c00 Added Vivaldi headers. 2015-12-07 16:06:51 -05:00
Jose Tavares
d22d9207cb fix #100 - Exception with QupZilla 2015-10-18 20:21:29 +01:00
Jose Tavares
1fa7c01a85 fix #107 - uc browser is not detect using this library 2015-10-18 20:06:08 +01:00
Will Binns-Smith
32e2bc4807 Expose the UA's os as a property on the results 2015-10-08 22:11:24 -07:00
Dustin Diaz
41b7f81209 changes year copyright 2015-07-25 19:14:51 -07:00
Dustin Diaz
68d08113a5 officially change export to be the bowser object directly 2015-07-25 19:14:31 -07:00
hsteinbr
38f79cf152 Detect chrome book user agent. 2015-06-04 13:53:50 -07:00
Aleksandr Beshkenadze
47678762bd Added support for detection of Yandex.Browser. 2015-05-27 15:51:04 +03:00
jdalton
7de18fd27d Add support for Microsoft Edge. 2015-05-15 19:35:13 -07:00
Dustin Diaz
f204fbeca5 Merge pull request #78 from lygstate/master
Add bowser test function.
2015-05-04 16:47:28 -07:00
hsteinbr
cda48cb48a Parse user agent by default according to spec.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
see 14.43
2015-05-01 15:38:36 -07:00
Yonggang Luo
2b80ea3105 Add bowser test function. 2015-03-12 23:04:02 +08:00
Andrew Shaffer
3c755ed710 add support for googlebot detection 2015-02-27 15:20:55 -08:00
Dustin Diaz
bd39e6eb71 Merge pull request #58 from trillioncz/master
mark BB10 browser as A graded
2014-10-06 11:00:45 -07:00
Stefan Penner
657f85a1b8 ensure the define belongs to amd 2014-10-06 11:09:38 -04:00
Ales Rippl
ac247c5d14 mark BB10 browser as A graded 2014-09-09 17:23:30 +02:00
Dustin Diaz
1a70355675 updates tests to reflect new browser groups 2014-04-07 16:59:27 -07:00
Dustin Diaz
dff5cc37be bump a version browsers 2014-04-07 16:59:27 -07:00
BendingBender
1e7a7279c8 refactored detection for firefox/seamonkey/plain gecko to conform to the way other browsers are detected, added version information in case unknown gecko/webkit browser is detected, added detection+tests+docs for sailfish browser 2014-02-28 19:53:50 +01:00
BendingBender
8bcd3bc802 separated os detection specific code from webkit-based browser detection 2014-02-28 18:03:32 +01:00
BendingBender
6ed5e29fd0 removed (undocumented) mozilla flag that was merely mirroring the gecko flag 2014-02-28 02:06:23 +01:00
BendingBender
fd1d833dec refactored regex matching to be executed at the latest possible moment and after a match was found to skip all consecutive regex execution instead of running *all* of the checks upfront 2014-02-28 01:58:30 +01:00
BendingBender
2e5dbd10b3 small code simplification 2014-02-26 00:22:58 +01:00
BendingBender
745c38b758 first flush of refactorings, clarified identifiers, moved flag generation for OSes that may have multiple browsers out of browser-specific code 2014-02-25 23:34:03 +01:00
BendingBender
c19a6672aa small cleanup 2014-02-25 01:52:27 +01:00
BendingBender
e39d6a8fc0 added detection for tizen and a new tizen flag 2014-02-25 01:48:35 +01:00
BendingBender
b7622cdb3a added detection for iceweasel, detecting it as firefox, no extra flags added 2014-02-25 01:05:55 +01:00
BendingBender
8fd5310a53 added detection for bada browser, changed docs to reflect the new flag 2014-02-25 00:47:02 +01:00
BendingBender
bae0904d80 added tablet detection, refined blackberry and older mobile chrome detection, added more tests for android native browser 2014-02-24 22:55:24 +01:00
BendingBender
23e385f884 combined webos and touchpad as webos with optional touchpad flag, added silk flag for silk browser, expanded documentation 2014-02-24 01:16:33 +01:00
BendingBender
a4014721f2 expanded test suite, added webos version detection 2014-02-24 00:17:24 +01:00
BendingBender
ffd340c62b marginally improved regex to detect firefoxos 2014-02-22 00:48:51 +01:00
BendingBender
b62ae3e233 Merge branch 'master' into make-testable-and-add-tests
Conflicts:
	bowser.js
	bowser.min.js
2014-02-21 21:07:21 +01:00
Dustin Diaz
8b6ba9bfd2 Merge branch 'make-testable-and-add-tests' of github.com:Jimdo/bowser into Jimdo-make-testable-and-add-tests 2014-02-21 08:33:10 -08:00
Dustin Diaz
cc27fc5f28 update copyright date 2014-02-21 08:33:01 -08:00
BendingBender
ede3ff49cd removed falsy flags from results, added osversion for ios/android/winphone,
added msie flag for winphone, made ios safari a-grade down to v6
2014-02-21 13:56:57 +01:00
BendingBender
0da898f906 made version extraction less error-prone/more future-proof, will now always check
if result of regex match is truthy and array bounds are correct before actually
accessing the version number
2014-02-21 01:23:58 +01:00
BendingBender
24dd55d9b4 added detection and tests for firefox on firefox os 2014-02-21 00:54:32 +01:00
BendingBender
1a22035c5b added tests for seamonkey and fixed detection 2014-02-21 00:30:09 +01:00
BendingBender
4acca40a99 added tests and detection for mobile firefox and mobile chrome 2014-02-21 00:02:13 +01:00
BendingBender
4fdd74d05a fixed indentation 2014-02-20 23:17:59 +01:00
BendingBender
ebfaba07e5 Merge branch 'expand-browser-support' of https://github.com/Jimdo/bowser into make-testable-and-add-tests
Conflicts:
	src/bowser.js
	src/useragents.js
2014-02-20 23:15:29 +01:00
BendingBender
5d246add74 added detection for newer opera + opera mobile (new/legacy) 2014-02-20 22:52:01 +01:00
Hannes Diercks
981354333e Merge branch 'origin/stable' into make-testable-and-add-tests 2014-02-20 09:34:55 +01:00
Dustin Diaz
fe82184bdf adds ipod to the mix
closes #37
2014-02-19 09:15:20 -08:00
Dustin Diaz
4bba352a16 add ipad and mobile to chrome devices 2014-02-19 09:07:14 -08:00
Dustin Diaz
6f23dc0338 closes #35 - making silk not part of safari detection 2014-01-27 14:10:16 -08:00
Dustin Diaz
3817621cc0 Merge branch 'amazon_silk' of github.com:smtlaissezfaire/bowser into smtlaissezfaire-amazon_silk
Conflicts:
	bowser.min.js
2014-01-27 14:05:59 -08:00
Dustin Diaz
efe1c6719a closes #16 - move commonjs to first check 2014-01-27 14:01:01 -08:00
Scott Taylor
325df23ddc add support amazon silk support for kindle devices 2014-01-26 14:43:32 -08:00
Hannes Diercks
8668678f8a Add support for ipod, windowsphone, webos and blackberry. 2013-12-16 06:52:33 +01:00
Hannes Diercks
89cffac4a5 Make testable and add tests. 2013-12-16 06:42:26 +01:00
Rob
0a13523041 Added Chrome for iOS 2013-12-11 17:38:22 +00:00
Bob Lauer
647b7d77f8 Added name property 2013-12-05 14:00:02 -06:00
Dustin Diaz
af42c3fd45 semicolon surprise 2013-12-03 14:46:08 -08:00
Rob Crawford
37a2e4834a Fix bug in Opera version regex 2013-10-29 23:04:59 +00:00
Dustin Diaz
20826d1ea5 upgrade support 2013-08-16 13:03:14 -07:00
Dustin Diaz
541fab750e rebuild and new relase for IE, Opera, & Phantom
cut v0.3
2013-08-16 12:58:39 -07:00
Dustin Diaz
eb7a857e5f Merge pull request #20 from MartinodF/patch-1
Add IE11 support + avoid exception when unable to match UA
2013-08-16 12:54:38 -07:00
Dustin Diaz
f8e28168de Merge pull request #21 from bbog/patch-1
Update bowser.js
2013-08-16 12:53:12 -07:00
Pierre Bertet
f7aef97ec8 Added phantomjs support (#13) in the source file 2013-08-16 11:52:20 +01:00
Pierre Bertet
f5d91976f4 Firefox for Android 2013-08-16 11:38:30 +01:00
Bogdan Bucur
6cd5d1a5c4 Update bowser.js
Added support for Opera Next detection (Opera 15.0 returned Chrome 28.0)
2013-07-16 22:12:27 +03:00
Martino di Filippo
7fa03f9545 Add IE11 support
Match IE by looking for either "MSIE" or "Trident"
Read the new "rv:x.y" version number
2013-06-27 19:43:34 +02:00
Martino di Filippo
601eac6897 Avoid exception when unable to match UA
Make detect() return an empty object if it hasn't matched any known browser, so that graded browser support (and any external code using this library) doesn't raise a "Cannot read property ... of undefined" exception
2013-06-27 19:41:01 +02:00
Dustin Diaz
975a408f15 - add touchpad support
- upgrade graded support
2012-04-16 18:54:24 -07:00
Kelly
f381b9373b Removed copyright info. 2012-04-15 19:09:34 -06:00
anthem001
3d4f77a878 Added HP Touchpad support 2012-04-15 16:14:32 -06:00
unknown
f8bfa7bcab Added HP Touchpad support 2012-04-15 16:11:55 -06:00
Sean Soria
cf3e634570 Fix for missing version in iOS web apps
Also known as home screened app
2012-01-24 01:59:27 -08:00
plukevdh
2be132a7a5 add seamonkey 2011-11-16 22:18:22 -05:00
Rod Vagg
ce7bd2f878 jQuery compatibility: 'mozilla' for FF 2011-10-15 15:59:16 +11:00
Dustin Diaz
62a55250f8 - update browser grades.
- grade A now requires (minimum) Chrome 10, Firefox 4, and Opera 10
- bump minor package version
2011-10-11 10:02:07 +02:00
Rob Lifford
9e948dedc6 added generic ios flag to iphone and ipad 2011-09-30 08:26:08 -05:00
Rob Lifford
f695e8fc89 added iPad 2011-09-29 10:16:27 -05:00
Dustin Diaz
a339b847d2 - remove double copyright license 2011-09-26 17:00:27 -07:00
Dustin Diaz
970d1f1a73 - new flags for mobile with android and iPhone
- bump minor version
2011-09-26 16:58:18 -07:00
Dustin Diaz
6bb347a994 graded supported getting set correctly. bump package 2011-05-19 10:32:27 -07:00
Dustin Diaz
6792081d03 - adds graded support
- update readme
- bump package
2011-05-10 09:50:28 -07:00
Dustin Diaz
141bf0bcec - export browser as an object and not a function
- bump package
2011-05-02 13:33:54 -07:00
Morgan Cheng
fcba955d82 cache user agent detection result. 2011-04-29 20:07:14 -07:00
Dustin Diaz
a1505c4fb0 boosh 2011-04-27 15:14:35 -07:00