From 3a414262073b43b6a3e10ac4a90f0144e37a6bc5 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Wed, 3 Mar 2021 11:32:37 +0100 Subject: [PATCH] Add selector for current user ID --- src/scripts/constants/css-selector.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/scripts/constants/css-selector.ts b/src/scripts/constants/css-selector.ts index 23cdbd9..eef191b 100644 --- a/src/scripts/constants/css-selector.ts +++ b/src/scripts/constants/css-selector.ts @@ -23,6 +23,14 @@ export const selectors = { BK_TIME: "div.contentRow-minor > * time", }; +export const GENERIC = { + /** + * The ID of the user currently logged into + * the platform in the attribute `data-user-id`. + */ + CURRENT_USER_ID: "span.avatar[data-user-id]", +} + export const WATCHED_THREAD = { /** * List of elements containing the data of the watched threads.