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:
Aaron Liang
2026-07-21 00:08:48 +08:00
committed by GitHub
parent dfa204194f
commit 0d98ffaf89
+4
View File
@@ -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",
"接受", "接受",