JS method for determining whether the 360 secure browser's fast kernel is used, js360

Source: Internet
Author: User

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.

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.