From 32df790f5e4f35be14ad740fecd6b38975713610 Mon Sep 17 00:00:00 2001 From: beijixiaohu Date: Fri, 15 Dec 2023 14:14:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(Codeforces):=20=E4=BF=AE=E5=A4=8DGoogle=20?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E7=BB=93=E6=9E=9C=E4=B8=BA=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #11, fix #12 --- script/Codeforces Better!.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/Codeforces Better!.js b/script/Codeforces Better!.js index af092f499..5b08008ff 100644 --- a/script/Codeforces Better!.js +++ b/script/Codeforces Better!.js @@ -9279,7 +9279,7 @@ async function translate_gg(raw) { url: `${url}?${params}`, onload: function (response) { const html = response.responseText; - const translatedText = $(html).find('.result-container').text(); + const translatedText = $(html).filter('.result-container').text() || $(html).find('.result-container').text(); resolve(translatedText); }, onerror: function (response) {