Merge branch 'ultrafunkamsterdam:master' into master
This commit is contained in:
commit
a1e5c0d0b8
|
@ -10,7 +10,12 @@ Automatically downloads the driver binary and patches it.
|
||||||
* Works also on Brave Browser and many other Chromium based browsers, some tweaking
|
* Works also on Brave Browser and many other Chromium based browsers, some tweaking
|
||||||
* Python 3.6++**
|
* Python 3.6++**
|
||||||
|
|
||||||
|
- - -
|
||||||
|
## Message for all ##
|
||||||
|
I will be putting limits on the issue tracker. It has beeen abused too long.
|
||||||
|
any good news?
|
||||||
|
Yes, i've opened [Undetected-Discussions](https://github.com/ultrafunkamsterdam/undetected-chromedriver/discussions) which i think will help us better in the long run.
|
||||||
|
- - -
|
||||||
|
|
||||||
## 3.4.5 ##
|
## 3.4.5 ##
|
||||||
- What a week. Had the recent advancedments in Automation-Detection algorithms pwned (so i thought) with 3.4.0, but apparently, for some OS-es this caused an error when interacting with elements. Had to revert back using a different method, fix bugs, and now eventually was still able to stick to the initial idea (+ fixing bugs)
|
- What a week. Had the recent advancedments in Automation-Detection algorithms pwned (so i thought) with 3.4.0, but apparently, for some OS-es this caused an error when interacting with elements. Had to revert back using a different method, fix bugs, and now eventually was still able to stick to the initial idea (+ fixing bugs)
|
||||||
|
|
|
@ -17,7 +17,7 @@ by UltrafunkAmsterdam (https://github.com/ultrafunkamsterdam)
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
|
||||||
__version__ = "3.4.5"
|
__version__ = "3.4.6"
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -225,16 +225,16 @@ class Patcher(object):
|
||||||
len(target_bytes), b" "
|
len(target_bytes), b" "
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
new_content = content.replace(target_bytes, new_target_bytes)
|
new_content = content.replace(target_bytes, new_target_bytes)
|
||||||
if new_content == content:
|
if new_content == content:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"something went wrong patching the driver binary. could not find injection code block"
|
"something went wrong patching the driver binary. could not find injection code block"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"found block:\n%s\nreplacing with:\n%s"
|
"found block:\n%s\nreplacing with:\n%s"
|
||||||
% (target_bytes, new_target_bytes)
|
% (target_bytes, new_target_bytes)
|
||||||
)
|
)
|
||||||
fh.seek(0)
|
fh.seek(0)
|
||||||
fh.write(new_content)
|
fh.write(new_content)
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
|
Loading…
Reference in New Issue