This article is an example of JS to determine whether 360 safe browser speed kernel of the method. Share to everyone for your reference. The specific analysis is as follows:
360 Security Browser speed kernel, in non-360 website navigator.useragent is:
"mozilla/5.0 (Windows NT 6.1; WOW64) applewebkit/537.1 (khtml, like Gecko) chrome/21.0.1180.89 safari/537.1 ", with all the original Google browser useragent;
And 360 of their own website Navigator.useragent is
: "mozilla/5.0 (Windows NT 6.1; WOW64) applewebkit/537.1 (khtml, like Gecko) chrome/21.0.1180.89 safari/537.1 360SE ", which contains 360 of its own logo;
So in our own development process is difficult to know the 360 speed core;
The following method is extracted from a plugin in a front-end blog, which can be used to determine the speed kernel of 360 secure browsers
Copy Code code 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 with your JavaScript programming.