From c6a54c763144ea44ef2c82da980172f693bc89d3 Mon Sep 17 00:00:00 2001 From: Chen Yang Date: Fri, 26 Jul 2024 18:34:48 +0800 Subject: [PATCH] Fix bugs when parsing the author name in google scholar --- js/scholar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/scholar.js b/js/scholar.js index 86d6aa8..f1c776f 100644 --- a/js/scholar.js +++ b/js/scholar.js @@ -63,8 +63,8 @@ scholar.appendRanks = function () { if (!node.next().hasClass("ccf-rank") && !$(this).hasClass("ccf-ranked")) { let title = node.text(); let author = $(this) - .find("div.gs_gray") - .text() + .find("div.gs_gray")[0] + .innerText .replace(/[\,\…]/g, "") .split(" ")[1]; let year = $(this).find("td.gsc_a_y").text();