From 52bbeacfe6adb09dcaa32dd867a8a8c17f848a09 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 30 Mar 2018 10:43:16 +0200 Subject: Add click selectors for Instagram Load more comments/images for posts. --- crocoite/data/click.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crocoite') diff --git a/crocoite/data/click.js b/crocoite/data/click.js index 03e9f37..d19ec9f 100644 --- a/crocoite/data/click.js +++ b/crocoite/data/click.js @@ -43,6 +43,14 @@ const sites = Object.freeze ([ * frequent */ {s: 'span.morecomments a', flags: selectorFlag.none, throttle: 500}, ], + }, { + hostname: /^www\.instagram\.com$/i, + selector: [ + /* posts may have multiple images that load dynamically, click the arrow */ + {s: 'a[role=button].coreSpriteRightChevron', flags: selectorFlag.multi, throttle: 500}, + /* load more comments */ + {s: 'article div ul li a[role=button]', flags: selectorFlag.multi}, + ], } ]); -- cgit v1.2.3