JS method for determining whether the 360 secure browser's fast kernel is used, js360
This article describes how to determine if JS is 360 secure browser's kernel speed. Share it with you for your reference. The specific analysis is as follows:
360 secure browser kernel speed. The navigator. userAgent on non-360 websites is:
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1", all use the userAgent of the native Google browser;
In contrast, the navigator. userAgent of 360's website is
: "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1 QIHU 360SE", which contains the 360 ID;
Therefore, in our own development process, it is difficult to know the 360 speed kernel;
The following method is extracted from the plug-in a front-end blog. This method can be used to determine the speed kernel of the 360 secure browser.
Copy codeThe Code is as follows: function is360se (){
Var where = "suffixes", value = "dll", name = "description", nameReg =/fancy /;
Var mimeTypes = window. navigator. mimeTypes, I;
For (I in mimeTypes ){
If (mimeTypes [I] [where] = value ){
If (nameReg. test (mimeTypes [I] [name]) return false;
}
}
Return true;
}
I hope this article will help you design javascript programs.