From 57afd5ccf82f08ab19de4f9ee49ea0a5d34e41a1 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 6 Dec 2018 19:24:51 +0100 Subject: behavior: Fix patreon selector And that proves their CSS class names are not stable and cannot be used. --- crocoite/data/click.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crocoite/data/click.yaml') diff --git a/crocoite/data/click.yaml b/crocoite/data/click.yaml index d33eee3..b86bbb8 100644 --- a/crocoite/data/click.yaml +++ b/crocoite/data/click.yaml @@ -54,9 +54,8 @@ selector: match: ^www\.patreon\.com$ selector: - description: load more content - # I’ve been trying to avoid these generated css class selectors *so* hard, - # but it’s just not possible on this one. - selector: div.sc-bZQynM.fSJOpK button + # this selector is so long, because there are no stable css classes + selector: div.col-xs-12 > div > div > div > div[display="flex"] > div > button[tabindex="0"][color="tertiary"][type="button"] urls: ["https://www.patreon.com/nkjemisin"] - description: load more comments selector: div[display=flex] div[display=block] a[color="dark"][role="button"][tabindex="0"] -- cgit v1.2.3