summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-12-13 21:30:16 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-12-13 21:30:16 +0100
commit59c5018212934b8143e66b0e113b2a9f5fb0d15b (patch)
tree6a6828d4bd1e27868ead7bdfff133b39f51f2567
parent7a6305058c63af3824e09359a6fc31b0e1408cb8 (diff)
downloadcrocoite-59c5018212934b8143e66b0e113b2a9f5fb0d15b.tar.gz
crocoite-59c5018212934b8143e66b0e113b2a9f5fb0d15b.tar.bz2
crocoite-59c5018212934b8143e66b0e113b2a9f5fb0d15b.zip
behavior: Whitelist gab.com as well
-rw-r--r--crocoite/data/click.yaml10
1 files changed, 6 insertions, 4 deletions
diff --git a/crocoite/data/click.yaml b/crocoite/data/click.yaml
index f88d24d..9ce5bc2 100644
--- a/crocoite/data/click.yaml
+++ b/crocoite/data/click.yaml
@@ -65,18 +65,20 @@ selector:
- description: load more replies
selector: div > a[scale="0"][color=blue][size="1"]
---
-match: ^(www\.)?gab\.ai$
+# gab uses multiple domains without any preference for either (i.e. redirect),
+# so we need to support them all
+match: ^(www\.)?gab\.(ai|com)$
selector:
- description: more replies
selector: post-detail post-comment .post-comment__replies__count a
- urls: ["https://gab.ai/gab/posts/40014689"]
+ urls: ["https://gab.ai/gab/posts/40014689", "https://www.gab.com/gab/posts/40014689"]
- description: more comments
selector: post-detail .post-comment-list__loading a
- urls: ["https://gab.ai/gab/posts/41804462"]
+ urls: ["https://gab.ai/gab/posts/41804462", "https://www.gab.com/gab/posts/41804462"]
- description: more posts
selector: post-list a.post-list__load-more
multi: True
- urls: ["https://gab.ai/gab"]
+ urls: ["https://gab.ai/gab", "https://www.gab.com/gab"]
---
match: ^(www\.)?github\.com$
selector: