diff --git a/source/js/hook-duoshuo.js b/source/js/hook-duoshuo.js
index bb682f3f8..d0112039a 100644
--- a/source/js/hook-duoshuo.js
+++ b/source/js/hook-duoshuo.js
@@ -47,7 +47,7 @@ function showUa(string) {
var browserName = sua.browser.name;
if (checkMobile()) br = '
';
- if (osName == 'Android') osIco = ' ';
+ if (osName.match(/Android/i)) osIco = ' ';
if (osName.match(/linux/i)) osIco = ' ';
if (osName.match(/mac os|ios/i)) osIco = ' ';
if (sua.os.version == 'x86_64') sua.os.version = 'x64';
@@ -57,6 +57,8 @@ function showUa(string) {
if (browserName.match(/opera/i)) browserIco = ' ';
if (browserName.match(/safari/i)) browserIco = ' ';
if (browserName.match(/ie/i)) browserIco = ' ';
+ if (browserName.match(/WeChat/i)) browserIco = ' ';
+ if (browserName.match(/QQBrowser/i)) browserIco = ' ';
return br + '' + osIco +
sua.os.name + ' ' + sua.os.version + '' + br +
diff --git a/source/js/ua-parser.min.js b/source/js/ua-parser.min.js
index 31db88014..80ce7f750 100644
--- a/source/js/ua-parser.min.js
+++ b/source/js/ua-parser.min.js
@@ -1,9 +1,9 @@
/**
- * UAParser.js v0.7.9
+ * UAParser.js
* Lightweight JavaScript-based User-Agent string parser
* https://github.com/faisalman/ua-parser-js
*
* Copyright © 2012-2015 Faisal Salman
* Dual licensed under GPLv2 & MIT
*/
-(function(window,undefined){"use strict";var LIBVERSION="0.7.9",EMPTY="",UNKNOWN="?",FUNC_TYPE="function",UNDEF_TYPE="undefined",OBJ_TYPE="object",STR_TYPE="string",MAJOR="major",MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION="version",ARCHITECTURE="architecture",CONSOLE="console",MOBILE="mobile",TABLET="tablet",SMARTTV="smarttv",WEARABLE="wearable",EMBEDDED="embedded";var util={extend:function(regexes,extensions){for(var i in extensions){if("browser cpu device engine os".indexOf(i)!==-1&&extensions[i].length%2===0){regexes[i]=extensions[i].concat(regexes[i])}}return regexes},has:function(str1,str2){if(typeof str1==="string"){return str2.toLowerCase().indexOf(str1.toLowerCase())!==-1}else{return false}},lowerize:function(str){return str.toLowerCase()},major:function(version){return typeof version===STR_TYPE?version.split(".")[0]:undefined}};var mapper={rgx:function(){var result,i=0,j,k,p,q,matches,match,args=arguments;while(i0){if(q.length==2){if(typeof q[1]==FUNC_TYPE){result[q[0]]=q[1].call(this,match)}else{result[q[0]]=q[1]}}else if(q.length==3){if(typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)){result[q[0]]=match?q[1].call(this,match,q[2]):undefined}else{result[q[0]]=match?match.replace(q[1],q[2]):undefined}}else if(q.length==4){result[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):undefined}}else{result[q]=match?match:undefined}}}}i+=2}return result},str:function(str,map){for(var i in map){if(typeof map[i]===OBJ_TYPE&&map[i].length>0){for(var j=0;j