From 2d7c98f6858be3f53a9a18197c72986262f56830 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Wed, 3 Mar 2021 11:43:07 +0100 Subject: [PATCH] Add selector for post owner ID --- src/scripts/constants/css-selector.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scripts/constants/css-selector.ts b/src/scripts/constants/css-selector.ts index eef191b..4be7982 100644 --- a/src/scripts/constants/css-selector.ts +++ b/src/scripts/constants/css-selector.ts @@ -113,6 +113,12 @@ export const POST = { * For use within a `THREAD.POSTS_IN_PAGE` selector. */ ID: "span[id^=\"post\"]", + /** + * Unique ID of the post author in the `data-user-id` attribute. + * + * For use within a `THREAD.POSTS_IN_PAGE` selector. + */ + OWNER_ID: "* div.message-cell--user > * a[data-user-id]", /** * Main body of the post where the message written by the user is contained. *