From 0b6880d5deca91e6bc03834cae84f5971dfa1806 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Thu, 11 Mar 2021 22:13:56 +0100 Subject: [PATCH] Add selectors for spoilers elements --- src/scripts/constants/css-selector.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/scripts/constants/css-selector.ts b/src/scripts/constants/css-selector.ts index f9cdfcf..d1c528b 100644 --- a/src/scripts/constants/css-selector.ts +++ b/src/scripts/constants/css-selector.ts @@ -154,7 +154,16 @@ export const POST = { * * For use within a `THREAD.POSTS_IN_PAGE` selector. */ - BOOKMARKED: '* ul.message-attribution-opposite >li > a[title="Bookmark"].is-bookmarked' + BOOKMARKED: '* ul.message-attribution-opposite >li > a[title="Bookmark"].is-bookmarked', + /** + * Button used to hide/show a spoiler element of a post. + */ + SPOILER_BUTTON: "button.bbCodeSpoiler-button", + /** + * Contents of a spoiler element in a post. + */ + SPOILER_CONTENT: + "div.bbCodeSpoiler-content > div.bbCodeBlock--spoiler > div.bbCodeBlock-content" }; export const MEMBER = {