JS to determine whether 360 safe browser speed Kernel method _javascript tips

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.