From b54566350ad48b2800fb9f2557bb73d006281a65 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Tue, 2 Mar 2021 20:56:02 +0100 Subject: [PATCH] Improved selector --- src/scripts/constants/css-selector.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/constants/css-selector.ts b/src/scripts/constants/css-selector.ts index e7cf449..7bd28d4 100644 --- a/src/scripts/constants/css-selector.ts +++ b/src/scripts/constants/css-selector.ts @@ -111,7 +111,7 @@ export const MEMBER = { * * It also contains the unique ID of the user in the `data-user-id` attribute. */ - NAME: "span.username", + NAME: "span[class^=\"username\"]", /** * Title of the user in the platform. * @@ -146,6 +146,7 @@ export const MEMBER = { REACTION_SCORE: "div.pairJustifier > dl:nth-child(2) > dd", POINTS: "div.pairJustifier > dl:nth-child(3) > * a", RATINGS_RECEIVED: "div.pairJustifier > dl:nth-child(4) > dd", + AMOUNT_DONATED: "div.pairJustifier > dl:nth-child(5) > dd", /** * Button used to follow/unfollow the user. *