From 0d98ffaf897036d03598c1cbc0554af840406395 Mon Sep 17 00:00:00 2001 From: Aaron Liang <76561968+AaronL725@users.noreply.github.com> Date: Tue, 21 Jul 2026 00:08:48 +0800 Subject: [PATCH] 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. --- cpa_xai/browser_confirm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpa_xai/browser_confirm.py b/cpa_xai/browser_confirm.py index 316ed8b..27157e6 100644 --- a/cpa_xai/browser_confirm.py +++ b/cpa_xai/browser_confirm.py @@ -175,8 +175,12 @@ def _cookie_banner_visible(text: str) -> bool: def _dismiss_cookie_banner(page: Any, log: LogFn) -> bool: for label in ( + "接受所有 Cookie", + "接受所有Cookie", "全部允许", "Allow all", + "Allow All Cookies", + "Allow all cookies", "Accept All Cookies", "Accept all cookies", "接受",