From 59c5018212934b8143e66b0e113b2a9f5fb0d15b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 13 Dec 2018 21:30:16 +0100 Subject: behavior: Whitelist gab.com as well --- crocoite/data/click.yaml | 10 ++++++---- 1 file 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: -- cgit v1.2.3