From 90e7a6af427fee6fdd1858c4bdb151ef6d89baa4 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 8 Mar 2019 10:44:57 +0100 Subject: behavior: Fix selectors Fix Facebook/Patreon selectors and Instagram example URL. --- crocoite/data/click.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crocoite/data/click.yaml b/crocoite/data/click.yaml index 9ce5bc2..6355834 100644 --- a/crocoite/data/click.yaml +++ b/crocoite/data/click.yaml @@ -2,13 +2,11 @@ # Example URLs are random. Believe me. match: ^www\.facebook\.com$ selector: - - description: show more comments - selector: a.UFIPagerLink[role=button] + - description: Show comments and replies/nested comments on user pages + selector: form[action="/ajax/ufi/modify.php"] a[data-testid^="UFI2CommentsPagerRenderer/pager_depth_"] urls: ["https://www.facebook.com/tagesschau"] - - description: show nested comments - selector: a.UFICommentLink[role=button] - description: initially show comments below a single post/video, i.e. /user/post/123 - selector: form.commentable_item a[data-comment-prelude-ref=action_link_bling][rel=ignore] + selector: form[action="/ajax/ufi/modify.php"] a[data-testid="UFI2CommentsCount/root"] urls: ["https://www.facebook.com/tagesschau/posts/10157061068659407"] - description: close the “register now” nag screen. for better screen shots selector: a#expanding_cta_close_button[role=button] @@ -45,7 +43,7 @@ selector: - description: load more comments selector: article div ul li button[type=button] multi: True - urls: ["https://www.instagram.com/p/BqvAm_XnmdJ/"] + urls: ["https://www.instagram.com/p/BuqGbgJHCCP/"] --- match: ^www\.youtube\.com$ selector: @@ -57,7 +55,7 @@ match: ^www\.patreon\.com$ selector: - description: load more content # 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"] + selector: div[display="block"] > div > div > div[display="flex"] > div > button[tabindex="0"][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