Skip to content

Commit 01c98e2

Browse files
authored
Merge pull request #2333 from seleniumbase/update-uc-mode
Update the UC Mode chromedriver patcher
2 parents 35b9d3d + 99eb336 commit 01c98e2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

seleniumbase/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.21.6"
2+
__version__ = "4.21.7"

seleniumbase/undetected/patcher.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def is_binary_patched(self, executable_path=None):
189189
with io.open(executable_path, "rb") as fh:
190190
if re.search(
191191
b"window.cdc_adoQpoasnfa76pfcZLmcfl_"
192-
b"(Array|Promise|Symbol|Object|Proxy)",
192+
b"(Array|Promise|Symbol|Object|Proxy|JSON)",
193193
fh.read()
194194
):
195195
return False
@@ -212,14 +212,14 @@ def gen_call_function_js_cache_name(match):
212212
file_bin = fh.read()
213213
file_bin = re.sub(
214214
b"window\\.cdc_[a-zA-Z0-9]{22}_"
215-
b"(Array|Promise|Symbol|Object|Proxy)"
216-
b" = window\\.(Array|Promise|Symbol|Object|Proxy);",
215+
b"(Array|Promise|Symbol|Object|Proxy|JSON)"
216+
b" = window\\.(Array|Promise|Symbol|Object|Proxy|JSON);",
217217
gen_js_whitespaces,
218218
file_bin,
219219
)
220220
file_bin = re.sub(
221221
b"window\\.cdc_[a-zA-Z0-9]{22}_"
222-
b"(Array|Promise|Symbol|Object|Proxy) \\|\\|",
222+
b"(Array|Promise|Symbol|Object|Proxy|JSON) \\|\\|",
223223
gen_js_whitespaces,
224224
file_bin,
225225
)

0 commit comments

Comments
 (0)