fix: support current Chinese cookie consent labels
Upgrade issue #21 handling by adding the current Chinese xAI cookie-banner labels and complete Allow-all English variants while preserving exact-match clicking and existing OAuth boundaries.
This commit is contained in:
@@ -175,8 +175,12 @@ def _cookie_banner_visible(text: str) -> bool:
|
|||||||
|
|
||||||
def _dismiss_cookie_banner(page: Any, log: LogFn) -> bool:
|
def _dismiss_cookie_banner(page: Any, log: LogFn) -> bool:
|
||||||
for label in (
|
for label in (
|
||||||
|
"接受所有 Cookie",
|
||||||
|
"接受所有Cookie",
|
||||||
"全部允许",
|
"全部允许",
|
||||||
"Allow all",
|
"Allow all",
|
||||||
|
"Allow All Cookies",
|
||||||
|
"Allow all cookies",
|
||||||
"Accept All Cookies",
|
"Accept All Cookies",
|
||||||
"Accept all cookies",
|
"Accept all cookies",
|
||||||
"接受",
|
"接受",
|
||||||
|
|||||||
Reference in New Issue
Block a user