From 4b3ce390fd1579551ef26236ce61774239b9f204 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Wed, 17 Mar 2021 12:50:41 +0100 Subject: [PATCH] Add selector for spoiler name --- src/scripts/constants/css-selector.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/constants/css-selector.ts b/src/scripts/constants/css-selector.ts index e1bc733..f1e4f2b 100644 --- a/src/scripts/constants/css-selector.ts +++ b/src/scripts/constants/css-selector.ts @@ -156,9 +156,9 @@ export const POST = { */ BOOKMARKED: '* ul.message-attribution-opposite >li > a[title="Bookmark"].is-bookmarked', /** - * Button used to hide/show a spoiler element of a post. + * Name visualized on the button used to hide/show a spoiler element of a post. */ - SPOILER_BUTTON: "button.bbCodeSpoiler-button", + SPOILER_NAME: "button.bbCodeSpoiler-button > * span.bbCodeSpoiler-button-title", /** * Contents of a spoiler element in a post. */