summaryrefslogtreecommitdiff
path: root/crocoite/data/click.yaml
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-12-01 13:14:06 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-12-01 13:56:44 +0100
commit22adde79940d32c5f094f26f3e18b7160e7ccafc (patch)
tree8fb59939a8281e33c2c05c140409430c30ed5c58 /crocoite/data/click.yaml
parent6176991ac7ff0e6dcb4612b43da89abd350e3aa5 (diff)
downloadcrocoite-22adde79940d32c5f094f26f3e18b7160e7ccafc.tar.gz
crocoite-22adde79940d32c5f094f26f3e18b7160e7ccafc.tar.bz2
crocoite-22adde79940d32c5f094f26f3e18b7160e7ccafc.zip
behavior: Move click script data to external file
First step of issue #3
Diffstat (limited to 'crocoite/data/click.yaml')
-rw-r--r--crocoite/data/click.yaml70
1 files changed, 70 insertions, 0 deletions
diff --git a/crocoite/data/click.yaml b/crocoite/data/click.yaml
new file mode 100644
index 0000000..d9557eb
--- /dev/null
+++ b/crocoite/data/click.yaml
@@ -0,0 +1,70 @@
+# configuration for behavior.py:Click
+match: ^www\.facebook\.com$
+selector:
+ - description: show more comments
+ selector: a.UFIPagerLink[role=button]
+ - 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]
+ - description: close the “register now” nag screen. for better screen shots
+ selector: a#expanding_cta_close_button[role=button]
+---
+match: ^twitter\.com$
+selector:
+ - description: expand threads
+ selector: a.ThreadedConversation-moreRepliesLink
+ - description: show hidden profiles
+ selector: button.ProfileWarningTimeline-button
+ - description: show hidden/sensitive media
+ selector: button.Tombstone-action.js-display-this-media
+---
+match: ^disqus\.com$
+selector:
+ - description: load more comments
+ selector: a.load-more__button
+ multi: True
+---
+match: ^(www|np)\.reddit\.com$
+selector:
+ - description: show more comments, reddit’s javascript ignores events if too frequent
+ selector: span.morecomments a
+ throttle: 500
+---
+match: ^www\.instagram\.com$
+selector:
+ - description: load more comments
+ selector: article div ul li button[type=button]
+ multi: True
+ urls: ["https://www.instagram.com/p/BqvAm_XnmdJ/"]
+---
+match: ^www\.youtube\.com$
+selector:
+ - description: expand comment thread
+ selector: ytd-comment-thread-renderer div.more-button
+---
+match: ^www\.patreon\.com$
+selector:
+ - description: load more content
+ selector: div[display=flex] div[display=block] button[color=gray][type=button]
+ multi: True
+ - description: load more comments
+ selector: div.stackable[display=block] > div > div > a[color=dark][target=_self]
+ - description: load more replies
+ selector: div > a[scale="0"][color=blue][size="1"]
+---
+match: ^(www\.)?gab\.ai$
+selector:
+ - description: post comments
+ selector: post-detail post-comment .post-comment__replies__count a
+ - description: more comments
+ selector: post-detail .post-comment-list__loading a
+ - description: more posts
+ selector: post-list a.post-list__load-more
+ multi: True
+---
+match: ^(www\.)?github\.com$
+selector:
+ - description: show hidden issue items
+ urls: ["https://github.com/dominictarr/event-stream/issues/116"]
+ selector: div#discussion_bucket form.ajax-pagination-form button.ajax-pagination-btn