diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-03-30 10:43:16 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-03-30 10:43:16 +0200 |
commit | 52bbeacfe6adb09dcaa32dd867a8a8c17f848a09 (patch) | |
tree | f99d4e7e1eb22f4974e2ccd4498dbdc357c63848 | |
parent | 6e5087160953eb1ee7754453e10e68d40928e06c (diff) | |
download | crocoite-52bbeacfe6adb09dcaa32dd867a8a8c17f848a09.tar.gz crocoite-52bbeacfe6adb09dcaa32dd867a8a8c17f848a09.tar.bz2 crocoite-52bbeacfe6adb09dcaa32dd867a8a8c17f848a09.zip |
Add click selectors for Instagram
Load more comments/images for posts.
-rw-r--r-- | crocoite/data/click.js | 8 |
1 files changed, 8 insertions, 0 deletions
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}, + ], } ]); |