From 52af82e39497a29b3dc9a67760bd817cc07c0010 Mon Sep 17 00:00:00 2001
From: g1879 <g1879@qq.com>
Date: Sat, 6 Jun 2020 16:52:11 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0README?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.en.md    | 24 +++++++-----------------
 README.zh-cn.md | 24 +++++++-----------------
 2 files changed, 14 insertions(+), 34 deletions(-)

diff --git a/README.en.md b/README.en.md
index b349a41..3aa1388 100644
--- a/README.en.md
+++ b/README.en.md
@@ -397,7 +397,9 @@ arguments = [
             ; Google documentation mentions the need to add this attribute to avoid bugs
             '--disable-gpu',
             ; ignore errors
-            'ignore-certificate-errors'
+            'ignore-certificate-errors',
+            ; Hidden message bar
+            '--disable-infobars'
             ]
 ; Plugin
 extensions = []
@@ -485,8 +487,7 @@ set_mute(True)  # Silent mode
 set_user_agent('Mozilla/5.0 (Macintosh; Int......')  # set user agent
 set_proxy('127.0.0.1:8888')  # set proxy
 set_paths(paths)  # See the Initialization section 
-set_argument(arg, on_off)  # Set a property without value, eg.'zh_CN.UTF-8', if on_off is False, delete the item
-set_value_argument(arg, value)  # Set a property with value, eg.'--proxy-server=http://127.0.0.1:8888', Set to '' to delete the item
+set_argument(arg, on_off)  # Set the property. If the property has no value (e.g. 'zh_CN.utf-8'), the value is bool representing the switch. If value is "" or False, delete the attribute entry
 ```
 
 
@@ -1455,27 +1456,16 @@ Parameter Description:
   - cache_path - Cache path
   - check_version - Whether to check whether chromedriver and chrome match
 
-  ### set_value_argument
-
-  ​	set_value_argument(arg: str, value: str) -> None
-
-  ​	Set valued attributes.
-
-  ​	Parameter Description:
-
-  - arg - Attribute name
-  - value - Attribute value
-
   ### set_argument
 
-  ​	set_argument(arg: str, on_off: bool) -> None
+  	set_argument(arg: str, value: Union[bool, str]) -> None
 
-  ​	Set an attribute with no value.
+  	Set the properties. If the attribute has no value (such as' zh_CN.utf-8 '), the value is passed into the bool to indicate the switch; Otherwise, value passes in STR, and when value is "" or False, the attribute entry is deleted.
 
   ​	Parameter Description:
 
   - arg - Attribute name
-  - on_off - On or off
+  - value - Attribute value, pass in a value if it has a value, pass in a bool if it doesn't
 
   ### set_headless
 
diff --git a/README.zh-cn.md b/README.zh-cn.md
index 9468c7d..d3378e6 100644
--- a/README.zh-cn.md
+++ b/README.zh-cn.md
@@ -390,7 +390,9 @@ arguments = [
             ; 谷歌文档提到需要加上这个属性来规避bug
             '--disable-gpu',
             ; 忽略警告
-            'ignore-certificate-errors'
+            'ignore-certificate-errors',
+            ; 不显示信息栏
+            '--disable-infobars'
             ]
 ; 插件
 extensions = []
@@ -478,8 +480,7 @@ set_mute(True)  # 开启静音模式
 set_user_agent('Mozilla/5.0 (Macintosh; Int......')  # 设置user agent
 set_proxy('127.0.0.1:8888')  # 设置代理
 set_paths(paths)  # 见 [初始化] 一节
-set_argument(arg, on_off)  # 设置不带值的属性,如'zh_CN.UTF-8',on_off为False则删除该项
-set_value_argument(arg, value)  # 设置带值的属性,如'--proxy-server=http://127.0.0.1:8888',设为''则删除该项
+set_argument(arg, value)  # 设置属性,若属性无值(如'zh_CN.UTF-8'),value为bool表示开关;否则value为str,当value为''或False,删除该属性项
 ```
 
 # PO模式
@@ -1447,27 +1448,16 @@ chrome的配置太难记,所以把常用的配置写成简单的方法,调
 - cache_path - 缓存路径
 - check_version - 是否检查chromedriver和chrome是否匹配
 
-### set_value_argument
-
-​	set_value_argument(arg: str, value: str) -> None
-
-​	设置有值的属性。
-
-​	参数说明:
-
-- arg - 属性名
-- value - 属性值
-
 ### set_argument
 
-​	set_argument(arg: str, on_off: bool) -> None
+​	set_argument(arg: str, value: Union[bool, str]) -> None
 
-​	设置没有值的属性。
+​	设置属性。若属性无值(如'zh_CN.UTF-8'),value传入bool表示开关;否则value传入str,当value为''或False,删除该属性项。
 
 ​	参数说明:
 
 - arg - 属性名
-- on_off - 开或关
+- value - 属性值,有值的属性传入值,没有的传入bool
 
 ### set_headless