11/*!
22 * @desc : [Engine Detection Script for Browsers on Any Device]
33 * @file : [browsengine.js]
4- * @version : 0.0.4
4+ * @version : 0.0.5
55 * @author : https://twitter.com/isocroft (@isocroft)
66 * @created : 13/11/2014
7- * @updated : 25/09 /2017
7+ * @updated : 29/11 /2017
88 * @license : MIT
99 * @remarks : with love for the OpenSource Community...
1010 */
@@ -151,7 +151,7 @@ contentLoaded.apply(null, [window, function(){
151151
152152 /* Gecko has so many browsers using it... like, e plenty wellu wellu !! so we have to be kia-ful when detectig... */
153153
154- isGecko = ( ! n . vendor && ( w . crypto && typeof ( w . mozInnerScreenX ) == 'number' ) && ( ! ( d . getBoxObjectFor ) || ( 'registerContentHandler' in n ) ) && / G e c k o / g. test ( ua ) ) ,
154+ isGecko = ( ! n . vendor && ( ( ' crypto' in w ) && typeof ( w . mozInnerScreenX ) == 'number' ) && ( ! ( d . getBoxObjectFor ) || ( 'registerContentHandler' in n ) ) && / G e c k o / g. test ( ua ) ) ,
155155
156156 /* Presto is the only rendering engine used by older Opeara browsers, so we include the presence of {opera} object as a factor */
157157
@@ -163,11 +163,11 @@ contentLoaded.apply(null, [window, function(){
163163
164164 /* EdgeHTML rendering engine is a 'well-standardized' fork of the Trident rendering engine */
165165
166- isEdgeHTML = ( 'crypto' in w ) && _engineFragment && / E d g e / g. test ( ua ) && ! is_own_prop ( d , 'security' ) && ( w . chrome . runtime === undefined ) && ! isTrident ,
166+ isEdgeHTML = ( 'crypto' in w ) && _engineFragment && / E d g e / g. test ( ua ) && ( 'msCredentials' in w ) && ( w . chrome . runtime === undefined ) && ! isTrident ,
167167
168168 /* Blink rendering engine is the new successor to Webkit for Chromium and Chrome browsers */
169169
170- isBlink = _engineFragment && ( 'crypto' in w ) && ( ( ! ! w . Intl ) && ! ! ( w . Intl . v8BreakIterator ) ) && ( 'CSS ' in w ) ;
170+ isBlink = _engineFragment && ( 'crypto' in w ) && ( ( ! ! w . Intl ) && ! ! ( w . Intl . v8BreakIterator ) ) && ( 'C ' in w ) ;
171171
172172 /* setup info object - {webpage} */
173173
@@ -724,6 +724,14 @@ contentLoaded.apply(null, [window, function(){
724724 body . className += " yes-blink chrome" ;
725725
726726 }
727+
728+ /* Detecting Vivaldi Browser for Desktop (Blink Engine) ... */
729+
730+ if ( ua . match ( / v i v a l d i \/ (?: [ \d ] { 1 , } \. [ \d ] { 1 , } ) / ) ) {
731+
732+ body . className += " yes-blink vivaldi" ;
733+
734+ }
727735
728736 body . className += " blink like-gecko like-khtml" ;
729737
@@ -745,6 +753,8 @@ contentLoaded.apply(null, [window, function(){
745753
746754
747755 }
756+
757+
748758
749759 /* Other Browser(s) desktop */
750760
0 commit comments