summaryrefslogtreecommitdiff
path: root/crocoite/data/click.yaml
blob: 60db0c2382eb54e59e8139931c711b1e0b16bd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Configuration for behavior.py:Click
# Example URLs are random. Believe me.
match: ^www\.facebook\.com$
selector:
  - description: show more comments
    selector: a.UFIPagerLink[role=button]
    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]
    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]
    urls: ["https://www.facebook.com/tagesschau"]
---
match: ^twitter\.com$
selector:
  - description: expand threads
    selector: a.ThreadedConversation-moreRepliesLink
    urls: ["https://twitter.com/realDonaldTrump/status/1068826073775964160"]
  - 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
    # 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/"]
---
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
    urls: ["https://www.youtube.com/watch?v=udtFqQuBFSc"]
---
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
    urls: ["https://www.patreon.com/nkjemisin"]
  - description: load more comments
    selector: div[display=flex] div[display=block] a[color="dark"][role="button"][tabindex="0"]
    urls: ["https://www.patreon.com/posts/what-im-on-22124040"]
  - description: load more replies
    selector: div > a[scale="0"][color=blue][size="1"]
---
match: ^(www\.)?gab\.ai$
selector:
  - description: more replies
    selector: post-detail post-comment .post-comment__replies__count a
    urls: ["https://gab.ai/gab/posts/40014689"]
  - description: more comments
    selector: post-detail .post-comment-list__loading a
    urls: ["https://gab.ai/gab/posts/41804462"]
  - description: more posts
    selector: post-list a.post-list__load-more
    multi: True
    urls: ["https://gab.ai/gab"]
---
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