summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-05-04 21:25:52 +0300
committerLars-Dominik Braun <lars@6xq.net>2019-05-04 21:40:27 +0300
commit002b9f5a766699aa280ee1e96b308752f0fd557b (patch)
tree710455f853ff11760292113cefcf37e8b145f889
parent21fe1ab5c3f9ab0e18ce3a24687e4ecc7a625609 (diff)
downloadcrocoite-002b9f5a766699aa280ee1e96b308752f0fd557b.tar.gz
crocoite-002b9f5a766699aa280ee1e96b308752f0fd557b.tar.bz2
crocoite-002b9f5a766699aa280ee1e96b308752f0fd557b.zip
behavior: Add clicking for imgur.com
-rw-r--r--crocoite/data/click.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/crocoite/data/click.yaml b/crocoite/data/click.yaml
index 1081b0e..c9f254a 100644
--- a/crocoite/data/click.yaml
+++ b/crocoite/data/click.yaml
@@ -108,3 +108,15 @@ selector:
urls: ["https://steamcommunity.com/app/252950/reviews/?p=1&browsefilter=toprated&filterLanguage=all"]
selector: "#GetMoreContentBtn a"
multi: True
+---
+match: ^imgur\.com$
+selector:
+ - description: Load more image of an album
+ urls: ["https://imgur.com/a/JG1yc"]
+ selector: div.js-post-truncated a.post-loadall
+ - description: Expand all comments (for snapshots)
+ urls: ["https://imgur.com/a/JG1yc"]
+ selector: div.comments-info span.comments-expand
+ - description: Show bad replies (for snapshots)
+ urls: ["https://imgur.com/gallery/0l6Yo4r"]
+ selector: div#comments div.bad-captions a.link