自定义切核功能说明_360社区


AI Summary Hide AI Generated Summary

360 Browser Kernel Customization

This article explains how to customize the rendering engine (kernel) used by the 360 fast browser. The browser offers two modes: 'Speed Mode' (using the Blink/Webkit engine) and 'Compatibility Mode' (using the Trident/IE engine).

Customization Methods

  • Manual Switching: Users can manually switch between Speed and Compatibility modes for individual websites.
  • Meta Tags: Developers can use meta tags to specify the preferred mode (<meta name="renderer" content="webkit"> for Speed Mode, <meta name="renderer" content="ie-comp"> for Compatibility Mode).
  • Compatibility List: Websites can be added to a compatibility list for automatic mode assignment.
  • Settings Page: The browser's settings allow for managing and modifying custom kernel switching rules, including import and export functionality.
  • Command-Line Import: Kernel switching data can be imported from a local text file using a command-line instruction.

Compatibility Modes

Speed Mode: Offers better speed and rendering but might have compatibility issues with some websites.

Compatibility Mode: Ensures better compatibility with older websites and applications that rely on the Trident engine.

The article provides detailed instructions and examples for each method. It emphasizes different methods' suitability for various users (developers, individual users, and enterprise users).

Sign in to unlock more AI features Sign in with Google
本帖最后由 jiang_in 于 2024-5-9 18:46 编辑
用360极速浏览器X64位,官网地址https://browser.360.cn/ee/index.html 请仔细阅读并理解,特别是红字内核优先级:强制锁定极速模式(无法手动切换)>手动切换>meta指定>浏览器兼容列表1、强制锁定极速模式(此功能不对外提供,比如360导航)2、手动切换模式,手动切了兼容模式,以后打开一直是兼容,切了极速模式就一直是极速模式,只能手动切回去(meta指定、兼容列表会无效)3、meta指定默认模式(可以手动切换),开发者可以自己决定用什么模式,请用域名测试为准,不要用IP地址测试。     想用极速模式,增加meta标签:<meta name="renderer" content="webkit"> 这个是正确写法     想用兼容模式,增加meta标签:<meta name="renderer"  content="ie-comp"> 这个是正确写法     不要用<meta name=renderer content=webkit|ie-comp|ie-stand>  这个是错误写法4、浏览器兼容列表,浏览器自带的列表,设置打开网站的默认模式     网站申请加入浏览器兼容列表,“发新帖”,必须提供以下两个信息  (1)详细的网址(错误的反馈示范:我的网站,没有权限发网址可以用截图)  (2)在网页中添加meta标签     360极速浏览器现有两种内核模式,即“极速模式”和“兼容模式”。 极速模式    “极速模式”是以Blink(Webkit)为内核的浏览模式,Blink内核具有更高的网页浏览速度和更好网页渲染效果。但由于少部分网银、政府、税务、办公系统等网站对Blink的兼容性不佳,若打开此类网站发现异常,请手动切换到“兼容模式”下继续浏览。 兼容模式    “兼容模式”下,360极速浏览器调用Trident内核(IE内核),Trident内核具有网页兼容性好、页面适用性广的特征,对于部分在默认“极速模式”下出现问题的网页(如:使用了Activex控件、页面代码只支持Trident内核、网页中注明使用IE浏览器)的情况下,切换“兼容模式”就可以正常使用网站功能。

如何设置内核?

    1. 地址栏右侧,快速切换

可快速对当前网站设定使用“极速模式”(Blink内核)或“兼容模式”(Trident内核)

    2. “兼容模式”下,通过页面右键设定IE内核版本

    当页面在“兼容模式”下,可通过右键设定具体的IE内核版本

如:将新浪首页的兼容模式从“默认模式”修改为“IE8模式”

此功能不仅可以对网页进行具体IE内核设定,还可以方便的用于网站开发者的页面兼容性调试。

    3. 内核控制标签meta

    如您是网站的开发者,可以通过在页面<head>标签中添加代码,来指定网站的默认模式若页面需默认用极速模式,增加标签:<meta name=renderer content=webkit>若页面需默认用IE兼容模式,增加标签:<meta name=renderer content=ie-comp>若页面需默认用IE标准模式,增加标签:<meta name=renderer content=ie-stand>content的取值分别为webkit,ie-comp,ie-stand,区分大小写,分别代表用极速模式,IE兼容模式(低版本IE模式),IE标准模式(高版本IE模式)     4. 选项页内核切换设置
    支持查看、修改手动切核数据及切核数据的批量导入、导出设置地址:360极速浏览器-设置-高级设置-内核切换设置

    1)“添加新内核切换规则”输入框处输入网址-选择内核-左键点击他处-即可自动保存

    2) 导入和导出内核切换列表

    通过导入列表的方式批量对网址进行内核设定,也可将自己设定好的网址列表导出,方便用于其他电脑,此功能对于企业级用户的批量网址设置极具意义

    5. 支持使用命令行 --switcher-file=d:\1.txt 从本地文件导入切核数据

    1) 在本地电脑任意处新建一个文本文档(以在本地磁盘d:新建名称为“1.txt”文档为例)

    将需要内核切换的网址加入到文档中,现在支持精准匹配的内核为:极速模式、IE(和本地电脑中IE版本相同)、IE7、IE8、IE9、IE10、IE11

其中,文档的标准格式为:

  1. [360ee switcher]
  2. 192.168.0.1=Webkit
  3. 172.16.105.25=IE 7
  4. 12333sh.gov.cn=IE 11
复制代码

使用命令行从本地文件导入切核数据

打开命令提示符,将“360极速浏览器安装路径”在命令行处粘贴,输入空格、键入

复制代码

执行该命令即可

用命令行导入切核数据的方式非常适用于企业用户的批量网址内核设定。

Was this article displayed correctly? Not happy with what you see?

Tabs Reminder: Tabs piling up in your browser? Set a reminder for them, close them and get notified at the right time.

Try our Chrome extension today!


Share this article with your
friends and colleagues.
Earn points from views and
referrals who sign up.
Learn more

Facebook

Save articles to reading lists
and access them on any device


Share this article with your
friends and colleagues.
Earn points from views and
referrals who sign up.
Learn more

Facebook

Save articles to reading lists
and access them on any device