Skip to content

Commit

Permalink
Merge pull request #2333 from seleniumbase/update-uc-mode
Browse files Browse the repository at this point in the history
Update the UC Mode chromedriver patcher
  • Loading branch information
mdmintz authored Dec 1, 2023
2 parents 35b9d3d + 99eb336 commit 01c98e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion seleniumbase/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# seleniumbase package
__version__ = "4.21.6"
__version__ = "4.21.7"
8 changes: 4 additions & 4 deletions seleniumbase/undetected/patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def is_binary_patched(self, executable_path=None):
with io.open(executable_path, "rb") as fh:
if re.search(
b"window.cdc_adoQpoasnfa76pfcZLmcfl_"
b"(Array|Promise|Symbol|Object|Proxy)",
b"(Array|Promise|Symbol|Object|Proxy|JSON)",
fh.read()
):
return False
Expand All @@ -212,14 +212,14 @@ def gen_call_function_js_cache_name(match):
file_bin = fh.read()
file_bin = re.sub(
b"window\\.cdc_[a-zA-Z0-9]{22}_"
b"(Array|Promise|Symbol|Object|Proxy)"
b" = window\\.(Array|Promise|Symbol|Object|Proxy);",
b"(Array|Promise|Symbol|Object|Proxy|JSON)"
b" = window\\.(Array|Promise|Symbol|Object|Proxy|JSON);",
gen_js_whitespaces,
file_bin,
)
file_bin = re.sub(
b"window\\.cdc_[a-zA-Z0-9]{22}_"
b"(Array|Promise|Symbol|Object|Proxy) \\|\\|",
b"(Array|Promise|Symbol|Object|Proxy|JSON) \\|\\|",
gen_js_whitespaces,
file_bin,
)
Expand Down

0 comments on commit 01c98e2

Please sign in to comment.