From 9f5dce53744f421c95b099e28e4596b495f237de Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 20 Mar 2019 17:21:34 +0100 Subject: behavior: Fix Reddit selectors --- crocoite/data/click.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'crocoite') diff --git a/crocoite/data/click.yaml b/crocoite/data/click.yaml index 772c7d2..d7270bf 100644 --- a/crocoite/data/click.yaml +++ b/crocoite/data/click.yaml @@ -30,13 +30,21 @@ selector: selector: a.load-more__button multi: True --- -match: ^(www|np)\.reddit\.com$ +# new layout +match: ^www\.reddit\.com$ +selector: + - description: show more comments, reddit’s javascript ignores events if too frequent + selector: div[id^=moreComments-] > div > p + throttle: 500 + urls: ["https://www.reddit.com/r/subredditcancer/comments/b2b80f/we_are_moderators_of_rwatchpeopledie_amaa_just/"] +--- +# old layout +match: ^(old|np)\.reddit\.com$ selector: - description: show more comments, reddit’s javascript ignores events if too frequent selector: span.morecomments a throttle: 500 - # disabled: No idea why it is not working. The selector is fine. - #urls: ["https://www.reddit.com/r/funny/comments/a21rxz/well_this_was_a_highlight_of_my_day/"] + urls: ["https://old.reddit.com/r/subredditcancer/comments/b2b80f/we_are_moderators_of_rwatchpeopledie_amaa_just/"] --- match: ^www\.instagram\.com$ selector: -- cgit v1.2.3