summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-03-20 17:21:34 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-03-20 17:35:54 +0100
commit9f5dce53744f421c95b099e28e4596b495f237de (patch)
treebd5ee02c8551e9ac132023b415f681bf9467d803 /crocoite
parentb0e31340b4551d997a8895fd9294b253ddf69dc5 (diff)
downloadcrocoite-9f5dce53744f421c95b099e28e4596b495f237de.tar.gz
crocoite-9f5dce53744f421c95b099e28e4596b495f237de.tar.bz2
crocoite-9f5dce53744f421c95b099e28e4596b495f237de.zip
behavior: Fix Reddit selectors
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/data/click.yaml14
1 files changed, 11 insertions, 3 deletions
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: